From 36563fbe3252d0ed21afc66a959684a5e9080d50 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 14 Jul 2026 19:44:56 +0200 Subject: [PATCH] python3Packages.remi: unbreak with patch from upstream fixes https://hydra.nixos.org/build/336807445 --- pkgs/development/python-modules/remi/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/remi/default.nix b/pkgs/development/python-modules/remi/default.nix index 0db323c1c46a..c609f0a8db2a 100644 --- a/pkgs/development/python-modules/remi/default.nix +++ b/pkgs/development/python-modules/remi/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, setuptools, pytestCheckHook, matplotlib, @@ -22,6 +23,14 @@ buildPythonPackage rec { hash = "sha256-VQn+Uzp6oGSit8ot0e8B0C2N41Q8+J+o91skyVN1gDA="; }; + patches = [ + (fetchpatch { + name = "remote-pkg_resources-dependency.patch"; + url = "https://github.com/rawpython/remi/commit/54b253ccd9d7e9626d8236ec4a8a32631ff2fca2.patch"; + hash = "sha256-VyTc5jFmNRWnAQqEupBB87Xw86+e7VgMoQeUrBcY+mg="; + }) + ]; + preCheck = '' # for some reason, REMI already deal with these using try blocks, but they fail substituteInPlace test/test_widget.py \ @@ -45,7 +54,6 @@ buildPythonPackage rec { build-system = [ setuptools ]; dependencies = [ - setuptools # pkg_resources is referenced at runtime legacy-cgi ];