mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 11:15:12 +00:00
python310Packages.yte: init at 1.2.2
This commit is contained in:
parent
0e42a3ad35
commit
2b27987edc
57
pkgs/development/python-modules/yte/default.nix
Normal file
57
pkgs/development/python-modules/yte/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, plac
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yte";
|
||||
version = "1.2.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koesterlab";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-x0CmPiV/6zTnawPW9lgrZ9NsUhmK8fhafwqOP9o3Mdc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
plac
|
||||
pyyaml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"yte"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests.py"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# The CLI test need yte on the PATH
|
||||
export PATH=$out/bin:$PATH
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "YAML template engine with Python expressions";
|
||||
homepage = "https://github.com/koesterlab/yte";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -11145,6 +11145,8 @@ in {
|
||||
inherit (pkgs) jq;
|
||||
};
|
||||
|
||||
yte = callPackage ../development/python-modules/yte { };
|
||||
|
||||
ytmusicapi = callPackage ../development/python-modules/ytmusicapi { };
|
||||
|
||||
yubico-client = callPackage ../development/python-modules/yubico-client { };
|
||||
|
Loading…
Reference in New Issue
Block a user