about summary refs log tree commit diff
path: root/pkgs/development/python-modules/werkzeug
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-06-02 20:55:37 +0200
committerJonathan Ringer <jonringer117@gmail.com>2021-06-21 16:48:37 -0700
commitb8fae0c1d6c62f4a8a4b4657a0986213a134e71a (patch)
tree1544b8295175b6e3a599c9f68af3358fe33c400a /pkgs/development/python-modules/werkzeug
parentf6f96866b047740488451f3dc5da33715601731f (diff)
python3Packages.werkzeug: 1.0.1 -> 2.0.1
Disabled tests marked with @pytest.mark.filterwarnings, because it can't
find the configured warning category.

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/nix/store/2spmwmrzkgl7z5ifk4qlyqw64xap1bcl-python3.8-pytest-6.1.2/lib/python3.8/site-packages/_pytest/main.py", line 257, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/nix/store/2spmwmrzkgl7z5ifk4qlyqw64xap1bcl-python3.8-pytest-6.1.2/lib/python3.8/site-packages/_pytest/main.py", line 313, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/nix/store/2spmwmrzkgl7z5ifk4qlyqw64xap1bcl-python3.8-pytest-6.1.2/lib/python3.8/site-packages/_pytest/main.py", line 338, in pytest_runtestloop
INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/nix/store/0y4dgk5ssmmxn36awccwmsm0shr4s67m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 182, in _multicall
INTERNALERROR>     next(gen)  # first yield
INTERNALERROR>   File "/nix/store/2spmwmrzkgl7z5ifk4qlyqw64xap1bcl-python3.8-pytest-6.1.2/lib/python3.8/site-packages/_pytest/warnings.py", line 97, in pytest_runtest_protocol
INTERNALERROR>     with catch_warnings_for_item(
INTERNALERROR>   File "/nix/store/0vasglcgn2mzi1vibcdvrc1fjvpzxcv8-python3-3.8.9/lib/python3.8/contextlib.py", line 113, in __enter__
INTERNALERROR>     return next(self.gen)
INTERNALERROR>   File "/nix/store/2spmwmrzkgl7z5ifk4qlyqw64xap1bcl-python3.8-pytest-6.1.2/lib/python3.8/site-packages/_pytest/warnings.py", line 59, in catch_warnings_for_item
INTERNALERROR>     warnings.filterwarnings(*parse_warning_filter(arg, escape=False))
INTERNALERROR>   File "/nix/store/2spmwmrzkgl7z5ifk4qlyqw64xap1bcl-python3.8-pytest-6.1.2/lib/python3.8/site-packages/_pytest/config/__init__.py", line 1576, in parse_warning_filter
INTERNALERROR>     category = warnings._getcategory(
INTERNALERROR>   File "/nix/store/0vasglcgn2mzi1vibcdvrc1fjvpzxcv8-python3-3.8.9/lib/python3.8/warnings.py", line 266, in _getcategory
INTERNALERROR>     raise _OptionError("unknown warning category: %r" % (category,)) from None
INTERNALERROR> warnings._OptionError: unknown warning category: 'pytest.PytestUnraisableExceptionWarning'
Diffstat (limited to 'pkgs/development/python-modules/werkzeug')
-rw-r--r--pkgs/development/python-modules/werkzeug/default.nix47
1 files changed, 37 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/werkzeug/default.nix b/pkgs/development/python-modules/werkzeug/default.nix
index 73bebd8366ecd..d3dce5018d97f 100644
--- a/pkgs/development/python-modules/werkzeug/default.nix
+++ b/pkgs/development/python-modules/werkzeug/default.nix
@@ -1,30 +1,57 @@
-{ lib, stdenv, buildPythonPackage, fetchPypi
-, itsdangerous, hypothesis
-, pytestCheckHook, requests
+{ lib
+, stdenv
+, buildPythonPackage
+, pythonOlder
+, fetchPypi
+, watchdog
+, dataclasses
 , pytest-timeout
-, isPy3k
+, pytest-xprocess
+, pytestCheckHook
  }:
 
 buildPythonPackage rec {
   pname = "Werkzeug";
-  version = "1.0.1";
+  version = "2.0.1";
+  disabled = pythonOlder "3.6";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c";
+    sha256 = "0hlwawnn8c41f254qify5jnjj8xb97n294h09bqimzqhs0qdpq8x";
   };
 
-  propagatedBuildInputs = [ itsdangerous ];
-  checkInputs = [ pytestCheckHook requests hypothesis pytest-timeout ];
+  propagatedBuildInputs = lib.optionals (!stdenv.isDarwin) [
+    # watchdog requires macos-sdk 10.13+
+    watchdog
+  ] ++ lib.optionals (pythonOlder "3.7") [
+    dataclasses
+  ];
+
+  checkInputs = [
+    pytest-timeout
+    pytest-xprocess
+    pytestCheckHook
+  ];
 
   disabledTests = lib.optionals stdenv.isDarwin [
     "test_get_machine_id"
   ];
 
+  pytestFlagsArray = [
+    # don't run tests that are marked with filterwarnings, they fail with
+    # warnings._OptionError: unknown warning category: 'pytest.PytestUnraisableExceptionWarning'
+    "-m 'not filterwarnings'"
+  ];
+
   meta = with lib; {
     homepage = "https://palletsprojects.com/p/werkzeug/";
-    description = "A WSGI utility library for Python";
+    description = "The comprehensive WSGI web application library";
+    longDescription = ''
+      Werkzeug is a comprehensive WSGI web application library. It
+      began as a simple collection of various utilities for WSGI
+      applications and has become one of the most advanced WSGI
+      utility libraries.
+    '';
     license = licenses.bsd3;
-    maintainers = [ ];
   };
 }