From 9716c4487e38a9dba488b93543f0a39b92762b44 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 20 Mar 2021 13:48:57 -0700 Subject: [PATCH] =?UTF-8?q?python3Packages.pytest-dependency:=20Fix=20buil?= =?UTF-8?q?d=20with=20pytest=20=E2=89=A5=206.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 84d6dfc4aa22be61455c515975978ad9ae5ed195 (#113382) bumped pytest from 6.1.2 to 6.2.2 with insufficient testing, breaking pytest-dependency. Fix it by pulling in the upstream patch. Signed-off-by: Anders Kaseorg --- .../python-modules/pytest-dependency/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/pytest-dependency/default.nix b/pkgs/development/python-modules/pytest-dependency/default.nix index 7108a8f4c17..6e243b55bbd 100644 --- a/pkgs/development/python-modules/pytest-dependency/default.nix +++ b/pkgs/development/python-modules/pytest-dependency/default.nix @@ -9,6 +9,14 @@ buildPythonPackage rec { sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b"; }; + patches = [ + # Fix build with pytest ≥ 6.2.0, https://github.com/RKrahl/pytest-dependency/pull/51 + (fetchpatch { + url = "https://github.com/RKrahl/pytest-dependency/commit/0930889a13e2b9baa7617f05dc9b55abede5209d.patch"; + sha256 = "0ka892j0rrlnfvk900fcph0f6lsnr9dy06q5k2s2byzwijhdw6n5"; + }) + ]; + propagatedBuildInputs = [ pytest ]; checkInputs = [ pytest ];