1{ lib
2, buildPythonPackage
3, fetchPypi
4, pbr
5, prettytable
6, pyparsing
7, six
8, stevedore
9, pyyaml
10, cmd2
11, pytestCheckHook
12, testtools
13, fixtures
14, which
15}:
16
17buildPythonPackage rec {
18 pname = "cliff";
19 version = "3.7.0";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "389c81960de13f05daf1cbd546f33199e86c518ba4266c79ec7a153a280980ea";
24 };
25
26 propagatedBuildInputs = [
27 pbr
28 prettytable
29 pyparsing
30 six
31 stevedore
32 pyyaml
33 cmd2
34 ];
35
36 postPatch = ''
37 sed -i -e '/cmd2/c\cmd2' -e '/PrettyTable/c\PrettyTable' requirements.txt
38 '';
39
40 checkInputs = [ fixtures pytestCheckHook testtools which ];
41 # add some tests
42 pytestFlagsArray = [
43 "cliff/tests/test_utils.py"
44 "cliff/tests/test_app.py"
45 "cliff/tests/test_command.py"
46 "cliff/tests/test_help.py"
47 "cliff/tests/test_lister.py"
48 ];
49
50 meta = with lib; {
51 description = "Command Line Interface Formulation Framework";
52 homepage = "https://docs.openstack.org/cliff/latest/";
53 license = licenses.asl20;
54 maintainers = [ maintainers.costrouc ];
55 };
56}