summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-virtualenv/default.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-02-15 10:08:27 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2019-02-17 14:40:54 +0100
commitd2c3fd5af0022c612ce2cd4f274e09ab58ccc6fe (patch)
treefb42d34132de1274474bdb0661c1bbba8cbf1e0a /pkgs/development/python-modules/pytest-virtualenv/default.nix
parent7397fa2a2775269aad995a620b23e500168e36d5 (diff)
downloadnixpkgs-d2c3fd5af0022c612ce2cd4f274e09ab58ccc6fe.tar
nixpkgs-d2c3fd5af0022c612ce2cd4f274e09ab58ccc6fe.tar.gz
nixpkgs-d2c3fd5af0022c612ce2cd4f274e09ab58ccc6fe.tar.bz2
nixpkgs-d2c3fd5af0022c612ce2cd4f274e09ab58ccc6fe.tar.lz
nixpkgs-d2c3fd5af0022c612ce2cd4f274e09ab58ccc6fe.tar.xz
nixpkgs-d2c3fd5af0022c612ce2cd4f274e09ab58ccc6fe.tar.zst
nixpkgs-d2c3fd5af0022c612ce2cd4f274e09ab58ccc6fe.zip
Python: fix outfall after setting `strictDeps = true;`
Diffstat (limited to 'pkgs/development/python-modules/pytest-virtualenv/default.nix')
-rw-r--r--pkgs/development/python-modules/pytest-virtualenv/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pytest-virtualenv/default.nix b/pkgs/development/python-modules/pytest-virtualenv/default.nix
index a3ecd4d62ae..ec644187056 100644
--- a/pkgs/development/python-modules/pytest-virtualenv/default.nix
+++ b/pkgs/development/python-modules/pytest-virtualenv/default.nix
@@ -1,5 +1,5 @@
 { stdenv, buildPythonPackage, fetchPypi
-, pytest, pytestcov, mock, cmdline, pytest-fixture-config, pytest-shutil }:
+, pytest_3, pytestcov, mock, cmdline, pytest-fixture-config, pytest-shutil }:
 
 buildPythonPackage rec {
   pname = "pytest-virtualenv";
@@ -10,10 +10,12 @@ buildPythonPackage rec {
     sha256 = "d281725d10848773cb2b495d1255dd0a42fc9179e34a274c22e1c35837721f19";
   };
 
-  buildInputs = [ pytest pytestcov mock cmdline ];
+  checkInputs = [ pytest_3 pytestcov mock cmdline ];
   propagatedBuildInputs = [ pytest-fixture-config pytest-shutil ];
   checkPhase = '' py.test tests/unit '';
 
+  nativeBuildInputs = [ pytest_3 ];
+
   meta = with stdenv.lib; {
     description = "Create a Python virtual environment in your test that cleans up on teardown. The fixture has utility methods to install packages and list what’s installed.";
     homepage = https://github.com/manahl/pytest-plugins;