2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
|
|
|
, prettytable
|
|
|
|
, pyparsing
|
|
|
|
, six
|
|
|
|
, stevedore
|
|
|
|
, pyyaml
|
|
|
|
, cmd2
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, testtools
|
|
|
|
, fixtures
|
2021-01-15 22:18:51 +00:00
|
|
|
, which
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cliff";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "3.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "5bfb684b5fcdff0afaaccd1298a376c0e62e644c46b7e9abc034595b41fe1759";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pbr
|
|
|
|
prettytable
|
|
|
|
pyparsing
|
|
|
|
six
|
|
|
|
stevedore
|
|
|
|
pyyaml
|
|
|
|
cmd2
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-01-15 22:18:51 +00:00
|
|
|
sed -i -e '/cmd2/c\cmd2' -e '/PrettyTable/c\PrettyTable' requirements.txt
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
checkInputs = [ fixtures pytestCheckHook testtools which ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# add some tests
|
2021-01-15 22:18:51 +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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command Line Interface Formulation Framework";
|
|
|
|
homepage = "https://docs.openstack.org/cliff/latest/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|