nixpkgs/pkgs/development/python-modules/werkzeug/default.nix
Martin Weinelt b8fae0c1d6
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'
2021-06-21 16:48:37 -07:00

58 lines
1.3 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchPypi
, watchdog
, dataclasses
, pytest-timeout
, pytest-xprocess
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "Werkzeug";
version = "2.0.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0hlwawnn8c41f254qify5jnjj8xb97n294h09bqimzqhs0qdpq8x";
};
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 = "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;
};
}