2019-07-11 18:47:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-09-12 18:30:55 +00:00
|
|
|
, autopage
|
|
|
|
, cmd2
|
2019-07-11 18:47:07 +00:00
|
|
|
, pbr
|
|
|
|
, prettytable
|
|
|
|
, pyparsing
|
|
|
|
, pyyaml
|
2021-09-12 18:30:55 +00:00
|
|
|
, stevedore
|
|
|
|
, callPackage
|
2019-07-11 18:47:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cliff";
|
2021-08-26 19:32:31 +00:00
|
|
|
version = "3.9.0";
|
2019-07-11 18:47:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-26 19:32:31 +00:00
|
|
|
sha256 = "95363e9b43e2ec9599e33b5aea27a6953beda2d0673557916fa4f5796857daa3";
|
2019-07-11 18:47:07 +00:00
|
|
|
};
|
|
|
|
|
2021-09-12 18:30:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
# only a small portion of the listed packages are actually needed for running the tests
|
|
|
|
# so instead of removing them one by one remove everything
|
|
|
|
rm test-requirements.txt
|
|
|
|
'';
|
|
|
|
|
2019-07-11 18:47:07 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-09-12 18:30:55 +00:00
|
|
|
autopage
|
|
|
|
cmd2
|
2019-07-11 18:47:07 +00:00
|
|
|
pbr
|
|
|
|
prettytable
|
|
|
|
pyparsing
|
|
|
|
pyyaml
|
2021-09-12 18:30:55 +00:00
|
|
|
stevedore
|
2019-07-11 18:47:07 +00:00
|
|
|
];
|
|
|
|
|
2021-09-12 18:30:55 +00:00
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with stestr
|
|
|
|
doCheck = false;
|
2019-11-07 00:51:27 +00:00
|
|
|
|
2021-09-12 18:30:55 +00:00
|
|
|
pythonImportsCheck = [ "cliff" ];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
pytest = callPackage ./tests.nix { };
|
|
|
|
};
|
2019-07-11 18:47:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command Line Interface Formulation Framework";
|
2021-09-12 18:30:55 +00:00
|
|
|
homepage = "https://github.com/openstack/cliff";
|
2019-07-11 18:47:07 +00:00
|
|
|
license = licenses.asl20;
|
2021-09-12 18:30:55 +00:00
|
|
|
maintainers = teams.openstack.members;
|
2019-07-11 18:47:07 +00:00
|
|
|
};
|
|
|
|
}
|