From 28d7a0f7c9363f29fc53abf0543cf9b5cfeaa07e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 12 Nov 2025 02:27:08 +0100 Subject: [PATCH] python3Packages.marshmallow: 3.26.1 -> 4.1.0 https://github.com/marshmallow-code/marshmallow/blob/4.1.0/CHANGELOG.rst --- .../python-modules/marshmallow/default.nix | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/marshmallow/default.nix b/pkgs/development/python-modules/marshmallow/default.nix index 0ab9cf7f5dab..5b7dcfe0396d 100644 --- a/pkgs/development/python-modules/marshmallow/default.nix +++ b/pkgs/development/python-modules/marshmallow/default.nix @@ -3,27 +3,38 @@ stdenv, buildPythonPackage, fetchFromGitHub, + pythonOlder, + + # build-system flit-core, - packaging, + + # dependencies + backports-datetime-fromisoformat, + typing-extensions, + + # tests pytestCheckHook, simplejson, }: buildPythonPackage rec { pname = "marshmallow"; - version = "3.26.1"; + version = "4.1.0"; pyproject = true; src = fetchFromGitHub { owner = "marshmallow-code"; repo = "marshmallow"; tag = version; - hash = "sha256-l5pEhv8D6jRlU24SlsGQEkXda/b7KUdP9mAqrZCbl38="; + hash = "sha256-h1wkeJbJY/0K3Vpxz+Bc2/2PDWgOMqropG0XMBzAOq8="; }; - nativeBuildInputs = [ flit-core ]; + build-system = [ flit-core ]; - propagatedBuildInputs = [ packaging ]; + dependencies = lib.optionals (pythonOlder "3.11") [ + backports-datetime-fromisoformat + typing-extensions + ]; nativeCheckInputs = [ pytestCheckHook