summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pytest/default.nix')
-rw-r--r--pkgs/development/python-modules/pytest/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pytest/default.nix b/pkgs/development/python-modules/pytest/default.nix
index 1c0ceef83657..5fda0994010e 100644
--- a/pkgs/development/python-modules/pytest/default.nix
+++ b/pkgs/development/python-modules/pytest/default.nix
@@ -3,7 +3,7 @@
 , atomicwrites, mock, writeText
 }:
 buildPythonPackage rec {
-  version = "3.6.2";
+  version = "3.6.3";
   pname = "pytest";
 
   preCheck = ''
@@ -13,7 +13,7 @@ buildPythonPackage rec {
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "8ea01fc4fcc8e1b1e305252b4bc80a1528019ab99fd3b88666c9dc38d754406c";
+    sha256 = "0453c8676c2bee6feb0434748b068d5510273a916295fd61d306c4f22fbfd752";
   };
 
   checkInputs = [ hypothesis mock ];
@@ -27,9 +27,11 @@ buildPythonPackage rec {
     runHook postCheck
   '';
 
-  # Don't create .pytest-cache when using py.test in a Nix build
+  # Remove .pytest-cache when using py.test in a Nix build
   setupHook = writeText "pytest-hook" ''
-    export PYTEST_ADDOPTS="-p no:cacheprovider"
+    postFixupHooks+=(
+        'find $out -name .pytest-cache -type d -exec rm -rf {} +'
+    )
   '';
 
   meta = with stdenv.lib; {