From 129b1367f805d10dd2ea3412fbbbf83ab1b0e653 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 13 Jul 2026 23:51:24 +0200 Subject: [PATCH] python3Packages.pip-tools: fix build with pip 26 --- .../python-modules/pip-tools/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/development/python-modules/pip-tools/default.nix b/pkgs/development/python-modules/pip-tools/default.nix index 7f9c214dfaab..9c9a0f765e46 100644 --- a/pkgs/development/python-modules/pip-tools/default.nix +++ b/pkgs/development/python-modules/pip-tools/default.nix @@ -5,8 +5,10 @@ build, click, fetchFromGitHub, + fetchpatch, pip, pyproject-hooks, + pytest-mock, pytest-xdist, pytestCheckHook, setuptools, @@ -29,6 +31,17 @@ buildPythonPackage rec { patches = [ ./fix-setup-py-bad-syntax-detection.patch + + (fetchpatch { + name = "pip-26-compat.patch"; + url = "https://github.com/jazzband/pip-tools/commit/cbe3c692f8977270e7ae6061c8159450a73c13fe.patch"; + excludes = [ + "changelog.d/2379.feature.md" + "pyproject.toml" + "tox.ini" + ]; + hash = "sha256-wDma1FBnWnrRln0o7HaizMIkoQey6VdQzGh+q84cHxE="; + }) ]; build-system = [ setuptools-scm ]; @@ -45,6 +58,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; nativeCheckInputs = [ + pytest-mock pytest-xdist pytestCheckHook tomli-w