Skip to content

Commit

Permalink
python311Packages.werkzeug: 2.3.7 -> 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jan 26, 2024
1 parent f419df0 commit 756efb5
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions pkgs/development/python-modules/werkzeug/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,39 @@
, buildPythonPackage
, pythonOlder
, fetchPypi

# build-system
, flit-core

# dependencies
, markupsafe

# optional-dependencies
, watchdog

# tests
, cryptography
, ephemeral-port-reserve
, greenlet
, pytest-timeout
, pytest-xprocess
, pytestCheckHook
, markupsafe
# for passthru.tests
, moto, sentry-sdk

# reverse dependencies
, moto
, sentry-sdk
}:

buildPythonPackage rec {
pname = "werkzeug";
version = "2.3.8";
version = "3.0.1";
format = "pyproject";

disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-VUslfHS763oNJUFgpPj/4YUkP1KlIDUGC3Ycpi2XfwM=";
hash = "sha256-UH6BHs6nKxikBJR63tSzOQ4duPgmtJTXZVDvRbs7Hcw=";
};

nativeBuildInputs = [
Expand All @@ -36,16 +48,19 @@ buildPythonPackage rec {

passthru.optional-dependencies = {
watchdog = lib.optionals (!stdenv.isDarwin) [
# watchdog requires macos-sdk 10.13[
# watchdog requires macos-sdk 10.13
watchdog
];
};

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 [
Expand All @@ -68,6 +83,7 @@ buildPythonPackage rec {
};

meta = with lib; {
changelog = "https://werkzeug.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${replaceStrings [ "." ] [ "-" ] version}";
homepage = "https://palletsprojects.com/p/werkzeug/";
description = "The comprehensive WSGI web application library";
longDescription = ''
Expand Down

0 comments on commit 756efb5

Please sign in to comment.