From d3915617681e9d1674992cb28dd9c4beaaf34398 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Jul 2019 17:32:50 -0400 Subject: [PATCH] pythonPackages.pytest-annotate: refactor fix broken build relax constraint --- .../python-modules/pytest-annotate/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-annotate/default.nix b/pkgs/development/python-modules/pytest-annotate/default.nix index 581de7beeebc..86f344b0e949 100644 --- a/pkgs/development/python-modules/pytest-annotate/default.nix +++ b/pkgs/development/python-modules/pytest-annotate/default.nix @@ -14,9 +14,17 @@ buildPythonPackage rec { sha256 = "03e4dece2d1aa91666034f1b2e8bb7a7b8c6be11baf3cf2929b26eea5c6e86f3"; }; - propagatedBuildInputs = [ pyannotate pytest ]; + propagatedBuildInputs = [ + pyannotate + pytest + ]; - # not testing for a testing module... + postConfigure = '' + substituteInPlace setup.py \ + --replace "pytest>=3.2.0,<4.0.0" "pytest" + ''; + + # no testing in a testing module... doCheck = false; meta = with stdenv.lib; {