@@ -9,6 +9,10 @@
99, pyyaml
1010, unicodecsv
1111, cmd2
12+, pytest
13+, mock
14+, testtools
15+, fixtures
1216}:
1317
1418buildPythonPackage rec {
@@ -31,10 +35,17 @@ buildPythonPackage rec {
3135 unicodecsv
3236 ];
3337
34− # test dependencies are complex
35− # and would require about 20 packages
36− # to be added
37− doCheck = false;
38+ # remove version constraints
39+ postPatch = ''
40+ sed -i '/cmd2/c\cmd2' requirements.txt
41+ '';
42+
43+ checkInputs = [ fixtures mock pytest testtools ];
44+ # add some tests
45+ checkPhase = ''
46+ pytest cliff/tests/test_{utils,app,command,help,lister}.py \
47+ -k 'not interactive_mode'
48+ '';
3849
3950 meta = with lib; {
4051 description = "Command Line Interface Formulation Framework";