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"' '';