forked from mirrors/nixpkgs
57 lines
1 KiB
Nix
57 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pbr
|
|
, prettytable
|
|
, pyparsing
|
|
, six
|
|
, stevedore
|
|
, pyyaml
|
|
, cmd2
|
|
, pytestCheckHook
|
|
, testtools
|
|
, fixtures
|
|
, which
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cliff";
|
|
version = "3.6.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a3f4fa67eeafbcfa7cf9fe4b1755d410876528e1d0d115740db00b50a1250272";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pbr
|
|
prettytable
|
|
pyparsing
|
|
six
|
|
stevedore
|
|
pyyaml
|
|
cmd2
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i -e '/cmd2/c\cmd2' -e '/PrettyTable/c\PrettyTable' requirements.txt
|
|
'';
|
|
|
|
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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Command Line Interface Formulation Framework";
|
|
homepage = "https://docs.openstack.org/cliff/latest/";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|