diff options
Diffstat (limited to 'pkgs/development/python-modules/werkzeug/default.nix')
-rw-r--r-- | pkgs/development/python-modules/werkzeug/default.nix | 111 |
1 files changed, 51 insertions, 60 deletions
diff --git a/pkgs/development/python-modules/werkzeug/default.nix b/pkgs/development/python-modules/werkzeug/default.nix index 51e380ece2a16..49d4f1898f831 100644 --- a/pkgs/development/python-modules/werkzeug/default.nix +++ b/pkgs/development/python-modules/werkzeug/default.nix @@ -1,59 +1,47 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch2 - -# build-system -, flit-core - -# dependencies -, markupsafe - -# optional-dependencies -, watchdog - -# tests -, cryptography -, ephemeral-port-reserve -, greenlet -, pytest-timeout -, pytest-xprocess -, pytestCheckHook - -# reverse dependencies -, moto -, sentry-sdk +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + + # build-system + flit-core, + + # dependencies + markupsafe, + + # optional-dependencies + watchdog, + + # tests + cryptography, + ephemeral-port-reserve, + greenlet, + pytest-timeout, + pytest-xprocess, + pytestCheckHook, + + # reverse dependencies + moto, + sentry-sdk, }: buildPythonPackage rec { pname = "werkzeug"; - version = "3.0.1"; + version = "3.0.3"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-UH6BHs6nKxikBJR63tSzOQ4duPgmtJTXZVDvRbs7Hcw="; + hash = "sha256-CX5b/anwq6jaa4VFFG3vSB0Gqn0yZudEjizM9n3YvRg="; }; - patches = [ - (fetchpatch2 { - name = "werkzeug-pytest8-compat.patch"; - url = "https://github.com/pallets/werkzeug/commit/4e5bdca7f8227d10cae828f8064fb98190ace4aa.patch"; - hash = "sha256-lVknzvC+HIM6TagpyIOhnb+7tx0UXuGw0tINjsujISI="; - }) - ]; - - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - markupsafe - ]; + propagatedBuildInputs = [ markupsafe ]; passthru.optional-dependencies = { watchdog = lib.optionals (!stdenv.isDarwin) [ @@ -62,19 +50,20 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - cryptography - ephemeral-port-reserve - pytest-timeout - pytest-xprocess - pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.11") [ - greenlet - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - - disabledTests = lib.optionals stdenv.isDarwin [ - "test_get_machine_id" - ]; + nativeCheckInputs = + [ + cryptography + ephemeral-port-reserve + pytest-timeout + pytest-xprocess + pytestCheckHook + ] + ++ lib.optionals (pythonOlder "3.11") [ greenlet ] + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + + pythonImportsCheck = [ "werkzeug" ]; + + disabledTests = lib.optionals stdenv.isDarwin [ "test_get_machine_id" ]; disabledTestPaths = [ # ConnectionRefusedError: [Errno 111] Connection refused @@ -91,8 +80,10 @@ buildPythonPackage rec { inherit moto sentry-sdk; }; - meta = with lib; { - changelog = "https://werkzeug.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${replaceStrings [ "." ] [ "-" ] version}"; + meta = { + changelog = "https://werkzeug.palletsprojects.com/en/${lib.versions.majorMinor version}.x/changes/#version-${ + lib.replaceStrings [ "." ] [ "-" ] version + }"; homepage = "https://palletsprojects.com/p/werkzeug/"; description = "The comprehensive WSGI web application library"; longDescription = '' @@ -101,7 +92,7 @@ buildPythonPackage rec { applications and has become one of the most advanced WSGI utility libraries. ''; - license = licenses.bsd3; - maintainers = with maintainers; [ ]; + license = lib.licenses.bsd3; + maintainers = [ ]; }; } |