diff --git a/pkgs/development/python-modules/werkzeug/default.nix b/pkgs/development/python-modules/werkzeug/default.nix index 19945785eed9..d0397d61605f 100644 --- a/pkgs/development/python-modules/werkzeug/default.nix +++ b/pkgs/development/python-modules/werkzeug/default.nix @@ -14,6 +14,13 @@ buildPythonPackage rec { propagatedBuildInputs = [ itsdangerous ]; checkInputs = [ pytest requests hypothesis ]; + # Hi! New version of Werkzeug? Please double-check that this commit is + # inclucded, and then remove the following patch. + # https://github.com/pallets/werkzeug/commit/1cfdcf9824cb20e362979e8f7734012926492165 + patchPhase = '' + substituteInPlace "tests/test_serving.py" --replace "'python'" "sys.executable" + ''; + checkPhase = '' pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"} '';