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