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'
This commit is contained in:
parent
f6f96866b0
commit
b8fae0c1d6
1 changed files with 37 additions and 10 deletions
|
@ -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 = [ ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue