diff --git a/pkgs/development/python-modules/pyrsistent/default.nix b/pkgs/development/python-modules/pyrsistent/default.nix index 74c3724aa194..c8310c39441a 100644 --- a/pkgs/development/python-modules/pyrsistent/default.nix +++ b/pkgs/development/python-modules/pyrsistent/default.nix @@ -20,6 +20,10 @@ buildPythonPackage rec { checkInputs = [ pytestrunner pytest_4 hypothesis ]; + postPatch = '' + substituteInPlace setup.py --replace 'pytest<5' 'pytest' + ''; + meta = with stdenv.lib; { homepage = https://github.com/tobgu/pyrsistent/; description = "Persistent/Functional/Immutable data structures";