about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytest-annotate/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-annotate/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pytest-annotate/default.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-annotate/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-annotate/default.nix
index 581de7beeebc..12a7baa55bf5 100644
--- a/nixpkgs/pkgs/development/python-modules/pytest-annotate/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/pytest-annotate/default.nix
@@ -14,9 +14,20 @@ buildPythonPackage rec {
     sha256 = "03e4dece2d1aa91666034f1b2e8bb7a7b8c6be11baf3cf2929b26eea5c6e86f3";
   };
 
-  propagatedBuildInputs = [ pyannotate pytest ];
+  buildInputs = [
+    pytest
+  ];
 
-  # not testing for a testing module...
+  propagatedBuildInputs = [
+    pyannotate
+  ];
+
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "pytest>=3.2.0,<4.0.0" "pytest"
+  '';
+
+  # no testing in a testing module...
   doCheck = false;
 
   meta = with stdenv.lib; {