3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/cliff/default.nix

57 lines
1 KiB
Nix
Raw Normal View History

2019-07-11 19:47:07 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pbr
, prettytable
, pyparsing
, six
, stevedore
, pyyaml
, cmd2
2021-01-09 21:11:00 +00:00
, pytestCheckHook
, testtools
, fixtures
2021-01-09 21:11:00 +00:00
, which
2019-07-11 19:47:07 +01:00
}:
buildPythonPackage rec {
pname = "cliff";
2021-01-21 04:20:20 +00:00
version = "3.6.0";
2019-07-11 19:47:07 +01:00
src = fetchPypi {
inherit pname version;
2021-01-21 04:20:20 +00:00
sha256 = "a3f4fa67eeafbcfa7cf9fe4b1755d410876528e1d0d115740db00b50a1250272";
2019-07-11 19:47:07 +01:00
};
propagatedBuildInputs = [
pbr
prettytable
pyparsing
six
stevedore
pyyaml
cmd2
];
postPatch = ''
2021-01-09 21:11:00 +00:00
sed -i -e '/cmd2/c\cmd2' -e '/PrettyTable/c\PrettyTable' requirements.txt
'';
2021-01-09 21:11:00 +00:00
checkInputs = [ fixtures pytestCheckHook testtools which ];
# add some tests
2021-01-09 21:11:00 +00:00
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"
];
2019-07-11 19:47:07 +01:00
meta = with lib; {
description = "Command Line Interface Formulation Framework";
homepage = "https://docs.openstack.org/cliff/latest/";
2019-07-11 19:47:07 +01:00
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}