From 9ca78d4a434991bd5a01ac8b2998e561b590d762 Mon Sep 17 00:00:00 2001 From: Corbin Date: Sun, 10 Feb 2019 14:44:42 -0800 Subject: [PATCH] pythonModules.werkzeug: Forward-port PyPy fix. Included a comment for the upstream commit where this was fixed recently: https://github.com/pallets/werkzeug/commit/1cfdcf9824cb20e362979e8f7734012926492165 --- pkgs/development/python-modules/werkzeug/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/werkzeug/default.nix b/pkgs/development/python-modules/werkzeug/default.nix index 19945785eed..d0397d61605 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'"} '';