summary refs log tree commit diff
path: root/pkgs/development/python-modules/backports_functools_lru_cache
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-12-20 09:30:23 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2019-12-30 16:46:49 +0100
commite05e32ae047dcb686607ed2885ccb0c6fec1bfb0 (patch)
tree003e435517be486f65cf6089ab00dcbf5ed0c94f /pkgs/development/python-modules/backports_functools_lru_cache
parentbe3f724ae9d280189bb17b6bd28bf2697aa417ae (diff)
downloadnixpkgs-e05e32ae047dcb686607ed2885ccb0c6fec1bfb0.tar
nixpkgs-e05e32ae047dcb686607ed2885ccb0c6fec1bfb0.tar.gz
nixpkgs-e05e32ae047dcb686607ed2885ccb0c6fec1bfb0.tar.bz2
nixpkgs-e05e32ae047dcb686607ed2885ccb0c6fec1bfb0.tar.lz
nixpkgs-e05e32ae047dcb686607ed2885ccb0c6fec1bfb0.tar.xz
nixpkgs-e05e32ae047dcb686607ed2885ccb0c6fec1bfb0.tar.zst
nixpkgs-e05e32ae047dcb686607ed2885ccb0c6fec1bfb0.zip
pythonPackages.backports_functools_lru_cache: fix tests
Diffstat (limited to 'pkgs/development/python-modules/backports_functools_lru_cache')
-rw-r--r--pkgs/development/python-modules/backports_functools_lru_cache/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/backports_functools_lru_cache/default.nix b/pkgs/development/python-modules/backports_functools_lru_cache/default.nix
index b346b5c7503..8cb84c02b37 100644
--- a/pkgs/development/python-modules/backports_functools_lru_cache/default.nix
+++ b/pkgs/development/python-modules/backports_functools_lru_cache/default.nix
@@ -4,6 +4,9 @@
 , setuptools_scm
 , isPy3k
 , pytest
+, pytest-black
+, pytest-flake8
+, pytestcov
 }:
 
 buildPythonPackage rec {
@@ -15,12 +18,13 @@ buildPythonPackage rec {
     sha256 = "8fde5f188da2d593bd5bc0be98d9abc46c95bb8a9dde93429570192ee6cc2d4a";
   };
 
-  buildInputs = [ setuptools_scm ];
-
-  checkInputs = [ pytest ];
+  nativeBuildInputs = [ setuptools_scm ];
 
+  checkInputs = [ pytest pytest-flake8 pytest-black pytestcov ];
+  # ironically, they fail a linting test, and pytest.ini forces that test suite
   checkPhase = ''
-    pytest
+    rm backports/functools_lru_cache.py
+    pytest -k 'not format'
   '';
 
   # Test fail on Python 2
@@ -31,4 +35,4 @@ buildPythonPackage rec {
     homepage = https://github.com/jaraco/backports.functools_lru_cache;
     license = lib.licenses.mit;
   };
-}
\ No newline at end of file
+}