14 # optional-dependencies
19 ephemeral-port-reserve,
25 # reverse dependencies
30 buildPythonPackage rec {
35 disabled = pythonOlder "3.8";
38 inherit pname version;
39 hash = "sha256-qN1Z1N4oynBHGjTLp5vtX37y4Danazqwg1R0JG60H40=";
42 build-system = [ flit-core ];
44 dependencies = [ markupsafe ];
46 optional-dependencies = {
47 watchdog = lib.optionals (!stdenv.hostPlatform.isDarwin) [
48 # watchdog requires macos-sdk 10.13
56 ephemeral-port-reserve
61 ++ lib.optionals (pythonOlder "3.11") [ greenlet ]
62 ++ lib.flatten (builtins.attrValues optional-dependencies);
64 pythonImportsCheck = [ "werkzeug" ];
66 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_get_machine_id" ];
69 # ConnectionRefusedError: [Errno 111] Connection refused
70 "tests/test_serving.py"
74 # don't run tests that are marked with filterwarnings, they fail with
75 # warnings._OptionError: unknown warning category: 'pytest.PytestUnraisableExceptionWarning'
76 "-m 'not filterwarnings'"
80 inherit moto sentry-sdk;
84 changelog = "https://werkzeug.palletsprojects.com/en/${lib.versions.majorMinor version}.x/changes/#version-${
85 lib.replaceStrings [ "." ] [ "-" ] version
87 homepage = "https://palletsprojects.com/p/werkzeug/";
88 description = "Comprehensive WSGI web application library";
90 Werkzeug is a comprehensive WSGI web application library. It
91 began as a simple collection of various utilities for WSGI
92 applications and has become one of the most advanced WSGI
95 license = lib.licenses.bsd3;