mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-18 13:50:04 +00:00
python3Packages.mfusepy: fix build with setuptools 83 (#547174)
This commit is contained in:
@@ -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"'
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user