nixpkgs/pkgs/development/python-modules/cliff/default.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

2019-07-11 18:47:07 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, autopage
, cmd2
2019-07-11 18:47:07 +00:00
, pbr
, prettytable
, pyparsing
, pyyaml
, 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
};
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 = [
autopage
cmd2
2019-07-11 18:47:07 +00:00
pbr
prettytable
pyparsing
pyyaml
stevedore
2019-07-11 18:47:07 +00:00
];
# check in passthru.tests.pytest to escape infinite recursion with stestr
doCheck = false;
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";
homepage = "https://github.com/openstack/cliff";
2019-07-11 18:47:07 +00:00
license = licenses.asl20;
maintainers = teams.openstack.members;
2019-07-11 18:47:07 +00:00
};
}