about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycodestyle
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-06-07 09:33:46 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2020-06-11 10:00:25 +0200
commit5c08320af6ed0f19b42fe970ac7d5fede1233891 (patch)
tree0edd2eeaf94146482419bd7df057f6a0c3bca24f /pkgs/development/python-modules/pycodestyle
parent3e28db9eb8d58ccadf0b45415df349338fa46614 (diff)
python.pkgs.pycodestyle: fixup tests
Diffstat (limited to 'pkgs/development/python-modules/pycodestyle')
-rw-r--r--pkgs/development/python-modules/pycodestyle/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pycodestyle/default.nix b/pkgs/development/python-modules/pycodestyle/default.nix
index cb3fd12a4b195..e1d21a6a2eb1d 100644
--- a/pkgs/development/python-modules/pycodestyle/default.nix
+++ b/pkgs/development/python-modules/pycodestyle/default.nix
@@ -1,6 +1,7 @@
 { buildPythonPackage
 , fetchPypi
 , lib
+, python
 }:
 
 buildPythonPackage rec {
@@ -12,12 +13,14 @@ buildPythonPackage rec {
     sha256 = "c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e";
   };
 
+  dontUseSetuptoolsCheck = true;
+
   # https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14
   checkPhase = ''
-    python pycodestyle.py --max-doc-length=72 --testsuite testsuite
-    python pycodestyle.py --statistics pycodestyle.py
-    python pycodestyle.py --max-doc-length=72 --doctest
-    python setup.py test
+    ${python.interpreter} pycodestyle.py --max-doc-length=72 --testsuite testsuite
+    ${python.interpreter} pycodestyle.py --statistics pycodestyle.py
+    ${python.interpreter} pycodestyle.py --max-doc-length=72 --doctest
+    ${python.interpreter} -m unittest discover testsuite -vv
   '';
 
   meta = with lib; {