diff --git a/pkgs/development/python-modules/werkzeug/1.nix b/pkgs/development/python-modules/werkzeug/1.nix index ae4df6ae939c..faa07b496237 100644 --- a/pkgs/development/python-modules/werkzeug/1.nix +++ b/pkgs/development/python-modules/werkzeug/1.nix @@ -17,6 +17,11 @@ buildPythonPackage rec { propagatedBuildInputs = [ itsdangerous ]; checkInputs = [ pytestCheckHook requests hypothesis pytest-timeout ]; + postPatch = '' + # ResourceWarning causes tests to fail + rm tests/test_routing.py + ''; + disabledTests = [ "test_save_to_pathlib_dst" "test_cookie_maxsize" @@ -38,6 +43,9 @@ buildPythonPackage rec { # E File "/nix/store/cwv8aj4vsqvimzljw5dxsxy663vjgibj-python3.9-Werkzeug-1.0.1/lib/python3.9/site-packages/werkzeug/formparser.py", line 318, in parse_multipart_headers # E return Headers(result) # E ResourceWarning: unclosed file <_io.FileIO name=11 mode='rb+' closefd=True> + "test_basic_routing" + "test_merge_slashes_match" + "test_merge_slashes_build" "TestMultiPart" "TestHTTPUtility" ] ++ lib.optionals stdenv.isDarwin [ diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6e5703dbbdbc..15ffe1f9f344 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9817,6 +9817,8 @@ in { werkzeug = callPackage ../development/python-modules/werkzeug { }; + werkzeug1 = callPackage ../development/python-modules/werkzeug/1.nix { }; + west = callPackage ../development/python-modules/west { }; wfuzz = callPackage ../development/python-modules/wfuzz { };