python3Packages.cliff: fix build and add tests
This commit is contained in:
parent
8aa5f30a8f
commit
60e1709bae
@ -9,6 +9,10 @@
|
|||||||
, pyyaml
|
, pyyaml
|
||||||
, unicodecsv
|
, unicodecsv
|
||||||
, cmd2
|
, cmd2
|
||||||
|
, pytest
|
||||||
|
, mock
|
||||||
|
, testtools
|
||||||
|
, fixtures
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -31,10 +35,17 @@ buildPythonPackage rec {
|
|||||||
unicodecsv
|
unicodecsv
|
||||||
];
|
];
|
||||||
|
|
||||||
# test dependencies are complex
|
# remove version constraints
|
||||||
# and would require about 20 packages
|
postPatch = ''
|
||||||
# to be added
|
sed -i '/cmd2/c\cmd2' requirements.txt
|
||||||
doCheck = false;
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ fixtures mock pytest testtools ];
|
||||||
|
# add some tests
|
||||||
|
checkPhase = ''
|
||||||
|
pytest cliff/tests/test_{utils,app,command,help,lister}.py \
|
||||||
|
-k 'not interactive_mode'
|
||||||
|
'';
|
||||||
|
|
||||||
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