diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-09-14 14:21:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 14:21:19 +0200 |
commit | 0c17ce657c1030ff3efeb5a0f1e91dc1261a6e23 (patch) | |
tree | 9fbbb0358f8c93da8c91566ce0b6543960fbc38c /pkgs/development/python-modules/cliff/default.nix | |
parent | 6f038e8b118fa33728f0b2a248c99a48e7c034df (diff) | |
parent | 54cca75528fafcd8a45413b1323820c9128d01ef (diff) | |
download | nixpkgs-0c17ce657c1030ff3efeb5a0f1e91dc1261a6e23.tar nixpkgs-0c17ce657c1030ff3efeb5a0f1e91dc1261a6e23.tar.gz nixpkgs-0c17ce657c1030ff3efeb5a0f1e91dc1261a6e23.tar.bz2 nixpkgs-0c17ce657c1030ff3efeb5a0f1e91dc1261a6e23.tar.lz nixpkgs-0c17ce657c1030ff3efeb5a0f1e91dc1261a6e23.tar.xz nixpkgs-0c17ce657c1030ff3efeb5a0f1e91dc1261a6e23.tar.zst nixpkgs-0c17ce657c1030ff3efeb5a0f1e91dc1261a6e23.zip |
Merge pull request #137557 from SuperSandro2000/cliff
Diffstat (limited to 'pkgs/development/python-modules/cliff/default.nix')
-rw-r--r-- | pkgs/development/python-modules/cliff/default.nix | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/cliff/default.nix b/pkgs/development/python-modules/cliff/default.nix index 7eee574dad4..8b8f536bab6 100644 --- a/pkgs/development/python-modules/cliff/default.nix +++ b/pkgs/development/python-modules/cliff/default.nix @@ -1,17 +1,14 @@ { lib , buildPythonPackage , fetchPypi +, autopage +, cmd2 , pbr , prettytable , pyparsing -, six -, stevedore , pyyaml -, cmd2 -, pytestCheckHook -, testtools -, fixtures -, which +, stevedore +, callPackage }: buildPythonPackage rec { @@ -23,34 +20,35 @@ buildPythonPackage rec { sha256 = "95363e9b43e2ec9599e33b5aea27a6953beda2d0673557916fa4f5796857daa3"; }; + 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 + ''; + propagatedBuildInputs = [ + autopage + cmd2 pbr prettytable pyparsing - six - stevedore pyyaml - cmd2 + stevedore ]; - postPatch = '' - sed -i -e '/cmd2/c\cmd2' -e '/PrettyTable/c\PrettyTable' requirements.txt - ''; + # check in passthru.tests.pytest to escape infinite recursion with stestr + doCheck = false; - checkInputs = [ fixtures pytestCheckHook testtools which ]; - # add some tests - pytestFlagsArray = [ - "cliff/tests/test_utils.py" - "cliff/tests/test_app.py" - "cliff/tests/test_command.py" - "cliff/tests/test_help.py" - "cliff/tests/test_lister.py" - ]; + pythonImportsCheck = [ "cliff" ]; + + passthru.tests = { + pytest = callPackage ./tests.nix { }; + }; meta = with lib; { description = "Command Line Interface Formulation Framework"; - homepage = "https://docs.openstack.org/cliff/latest/"; + homepage = "https://github.com/openstack/cliff"; license = licenses.asl20; - maintainers = [ maintainers.costrouc ]; + maintainers = teams.openstack.members; }; } |