From 4377d54226f39dc22e03e75eb2ab9b46ef13b18b Mon Sep 17 00:00:00 2001 From: kyehn Date: Wed, 29 Jul 2026 18:53:58 +0000 Subject: [PATCH] python3Packages.mfusepy: fix build with setuptools 83 --- pkgs/development/python-modules/mfusepy/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/mfusepy/default.nix b/pkgs/development/python-modules/mfusepy/default.nix index 5037f3e7d252..6459f3129a8b 100644 --- a/pkgs/development/python-modules/mfusepy/default.nix +++ b/pkgs/development/python-modules/mfusepy/default.nix @@ -22,8 +22,14 @@ buildPythonPackage { hash = "sha256-k7CxATpFTIZfQxnz8aYuyeooFY64JZl7Z8jfH2CtehM="; }; + # upstream pins setuptools < 83 because of backward-incompatible license + # file specification change; nixpkgs has setuptools 83 which still works + # (deprecation warning only, see pyproject.toml for the full context) + postPatch = '' + substituteInPlace pyproject.toml --replace-fail '"setuptools >= 61, < 83"' '"setuptools >= 61"' + '' # If fuse library path cannot be found, use fuse library path in nixpkgs - postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' + + lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace mfusepy.py \ --replace-fail "_libfuse_path = find_library('fuse3')" '_libfuse_path = "${lib.getLib fuse3}/lib/libfuse3.so.4"' '';