My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/yte/default.nix

59 lines
981 B

{ lib
, buildPythonPackage
, dpath
, fetchFromGitHub
, plac
, poetry-core
, pytestCheckHook
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "yte";
version = "1.4.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "koesterlab";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-G3TjIs/EeCqpNuFdb/WZ7PaPtnUdTvbH41OtRypfptg=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
dpath
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 ];
};
}