summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-dependency
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-04-26 13:40:49 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-04-26 14:29:10 -0500
commit8d0e3ad603dda85462161bba1351893b84339462 (patch)
tree34ce43faf158f6382a8d0d0b276d33edfab5e91b /pkgs/development/python-modules/pytest-dependency
parent58c473985c14801d4c3cf36fa8d2b3ef9020b709 (diff)
downloadnixpkgs-8d0e3ad603dda85462161bba1351893b84339462.tar
nixpkgs-8d0e3ad603dda85462161bba1351893b84339462.tar.gz
nixpkgs-8d0e3ad603dda85462161bba1351893b84339462.tar.bz2
nixpkgs-8d0e3ad603dda85462161bba1351893b84339462.tar.lz
nixpkgs-8d0e3ad603dda85462161bba1351893b84339462.tar.xz
nixpkgs-8d0e3ad603dda85462161bba1351893b84339462.tar.zst
nixpkgs-8d0e3ad603dda85462161bba1351893b84339462.zip
pythonPackages.pytest-dependency: fix build
Diffstat (limited to 'pkgs/development/python-modules/pytest-dependency')
-rw-r--r--pkgs/development/python-modules/pytest-dependency/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pytest-dependency/default.nix b/pkgs/development/python-modules/pytest-dependency/default.nix
index cb5c95aa1aa..2f82f4d7dbd 100644
--- a/pkgs/development/python-modules/pytest-dependency/default.nix
+++ b/pkgs/development/python-modules/pytest-dependency/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildPythonPackage, fetchPypi, pytest }:
+{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, pytest }:
 
 buildPythonPackage rec {
   version = "0.4.0";
@@ -9,8 +9,19 @@ buildPythonPackage rec {
     sha256 = "bda0ef48e6a44c091399b12ab4a7e580d2dd8294c222b301f88d7d57f47ba142";
   };
 
+  patches = [
+    # Fix tests for pytest>=4.2.0. Remove with the next release
+    (fetchpatch {
+      url = "https://github.com/RKrahl/pytest-dependency/commit/089395bf77e629ee789666361ee12395d840252c.patch";
+      sha256 = "1nkha2gndrr3mx11kx2ipxhphqd6wr25hvkrfwzyrispqfhgl0wm";
+      excludes = [ "doc/src/changelog.rst" ];
+    })
+  ];
+
   propagatedBuildInputs = [ pytest ];
 
+  checkInputs = [ pytest ];
+
   checkPhase = ''
     pytest
   '';