about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-22 16:02:12 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-22 16:19:52 +0100
commitd56611b25b9ac76f00c66987874db187dfa10f6f (patch)
treecefddad761de7bd84bdaa9cf8017927bd21b2b88 /pkgs/development/python-modules
parente5f2cf4af1d7fafcb2162da912e8490b63bdd25c (diff)
downloadnixlib-d56611b25b9ac76f00c66987874db187dfa10f6f.tar
nixlib-d56611b25b9ac76f00c66987874db187dfa10f6f.tar.gz
nixlib-d56611b25b9ac76f00c66987874db187dfa10f6f.tar.bz2
nixlib-d56611b25b9ac76f00c66987874db187dfa10f6f.tar.lz
nixlib-d56611b25b9ac76f00c66987874db187dfa10f6f.tar.xz
nixlib-d56611b25b9ac76f00c66987874db187dfa10f6f.tar.zst
nixlib-d56611b25b9ac76f00c66987874db187dfa10f6f.zip
python.pkgs.python-utils: run tests
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/python-utils/default.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/python-utils/default.nix b/pkgs/development/python-modules/python-utils/default.nix
index 7e330302de8d..7aa776540061 100644
--- a/pkgs/development/python-modules/python-utils/default.nix
+++ b/pkgs/development/python-modules/python-utils/default.nix
@@ -9,18 +9,15 @@ buildPythonPackage rec {
     sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
   };
 
-  checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
-
   postPatch = ''
-    # pytest-runner is only actually required in checkPhase
-    substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
+    rm -r tests/__pycache__
+    rm tests/*.pyc
   '';
 
-  # Tests failing
-  doCheck = false;
+  checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
 
   checkPhase = ''
-    py.test
+    py.test tests
   '';
 
   propagatedBuildInputs = [ six ];