From 74d7b3cddc16738678388a68b83fd61ece1189b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 19 Jan 2026 12:21:15 -0800 Subject: [PATCH] python314Packages.iteration-utilities: fix build --- .../python-modules/iteration-utilities/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/iteration-utilities/default.nix b/pkgs/development/python-modules/iteration-utilities/default.nix index 227d8fd9404e..74cb922387d5 100644 --- a/pkgs/development/python-modules/iteration-utilities/default.nix +++ b/pkgs/development/python-modules/iteration-utilities/default.nix @@ -2,13 +2,15 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "iteration-utilities"; version = "0.13.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "MSeifert04"; @@ -17,6 +19,16 @@ buildPythonPackage rec { hash = "sha256-SiqNUyuvsD5m5qz5ByYyVln3SSa4/D4EHpmM+pf8ngM="; }; + patches = [ + (fetchpatch { + name = "python314-compat.patch"; + url = "https://github.com/MSeifert04/iteration_utilities/pull/347.patch"; + hash = "sha256-1BzUTbzxIw4kExdrAlS4Pbh1zPweyU78ln2qGL7XL58="; + }) + ]; + + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "iteration_utilities" ];