pythonPackages.cliff: Fix dependencies
This commit is contained in:
parent
55444ed07f
commit
aa3a78911a
@ -7,12 +7,11 @@
|
|||||||
, six
|
, six
|
||||||
, stevedore
|
, stevedore
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, unicodecsv
|
|
||||||
, cmd2
|
, cmd2
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, mock
|
|
||||||
, testtools
|
, testtools
|
||||||
, fixtures
|
, fixtures
|
||||||
|
, which
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -32,20 +31,21 @@ buildPythonPackage rec {
|
|||||||
stevedore
|
stevedore
|
||||||
pyyaml
|
pyyaml
|
||||||
cmd2
|
cmd2
|
||||||
unicodecsv
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# remove version constraints
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i '/cmd2/c\cmd2' requirements.txt
|
sed -i -e '/cmd2/c\cmd2' -e '/PrettyTable/c\PrettyTable' requirements.txt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ fixtures mock pytest testtools ];
|
checkInputs = [ fixtures pytestCheckHook testtools which ];
|
||||||
# add some tests
|
# add some tests
|
||||||
checkPhase = ''
|
pytestFlagsArray = [
|
||||||
pytest cliff/tests/test_{utils,app,command,help,lister}.py \
|
"cliff/tests/test_utils.py"
|
||||||
-k 'not interactive_mode'
|
"cliff/tests/test_app.py"
|
||||||
'';
|
"cliff/tests/test_command.py"
|
||||||
|
"cliff/tests/test_help.py"
|
||||||
|
"cliff/tests/test_lister.py"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command Line Interface Formulation Framework";
|
description = "Command Line Interface Formulation Framework";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user