python3Packages.mfusepy: fix build with setuptools 83 (#547174)

This commit is contained in:
Peder Bergebakken Sundt
2026-08-09 20:48:33 +00:00
committed by GitHub

View File

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