Merge pull request #171121 from fabaff/pathy-clean
python310Packages.smart-open: 5.2.1 -> 6.0.0, python39Packages.spacy: 3.2.4 -> 3.3.0, snakemake: 6.15.5 -> 7.5.0main
commit
b10e012588
@ -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 ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue