pythonModules.werkzeug: Forward-port PyPy fix.

Included a comment for the upstream commit where this was fixed
recently:
1cfdcf9824
This commit is contained in:
Corbin 2019-02-10 14:44:42 -08:00 committed by Frederik Rietdijk
parent 3671657bfb
commit 9ca78d4a43

View File

@ -14,6 +14,13 @@ buildPythonPackage rec {
propagatedBuildInputs = [ itsdangerous ]; propagatedBuildInputs = [ itsdangerous ];
checkInputs = [ pytest requests hypothesis ]; 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 = '' checkPhase = ''
pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"} pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"}
''; '';