about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2019-04-27 15:59:25 +0100
committerRobert Scott <code@humanleg.org.uk>2019-04-28 15:58:09 +0100
commit83e01aa5e48a9107f3b988c9d4c1c21d610626fb (patch)
treea4573aa815a61f8bd6972ac74bbc4530d0b0a3b8 /pkgs
parent2a2ca8ca7e5a8e379556032d1023ec66e9afaf23 (diff)
downloadnixlib-83e01aa5e48a9107f3b988c9d4c1c21d610626fb.tar
nixlib-83e01aa5e48a9107f3b988c9d4c1c21d610626fb.tar.gz
nixlib-83e01aa5e48a9107f3b988c9d4c1c21d610626fb.tar.bz2
nixlib-83e01aa5e48a9107f3b988c9d4c1c21d610626fb.tar.lz
nixlib-83e01aa5e48a9107f3b988c9d4c1c21d610626fb.tar.xz
nixlib-83e01aa5e48a9107f3b988c9d4c1c21d610626fb.tar.zst
nixlib-83e01aa5e48a9107f3b988c9d4c1c21d610626fb.zip
pythonPackages.fastpair: force use of pytest_3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/fastpair/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/fastpair/default.nix b/pkgs/development/python-modules/fastpair/default.nix
index f065bc6ac77f..090f9dd82601 100644
--- a/pkgs/development/python-modules/fastpair/default.nix
+++ b/pkgs/development/python-modules/fastpair/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy }:
+{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest_3, scipy }:
 
 buildPythonPackage {
   pname = "fastpair";
@@ -11,16 +11,16 @@ buildPythonPackage {
     sha256 = "1pv9sxycxdk567s5gs947rhlqngrb9nn9yh4dhdvg1ix1i8dca71";
   };
 
-  buildInputs = [ pytestrunner ];
+  nativeBuildInputs = [ (pytestrunner.override { pytest = pytest_3; }) ];
 
-  checkInputs = [ pytest ];
+  checkInputs = [ pytest_3 ];
 
   propagatedBuildInputs = [
     scipy
   ];
 
   checkPhase = ''
-    py.test fastpair
+    pytest fastpair
   '';
 
   meta = with stdenv.lib; {