python312Packages.fuse: fix cross build, cleanup

This commit is contained in:
FliegendeWurst
2025-01-12 15:29:35 +01:00
parent d9e9853753
commit 2d6c5e4976
@@ -4,22 +4,31 @@
buildPythonPackage,
fetchPypi,
pkg-config,
setuptools,
fuse,
}:
buildPythonPackage rec {
pname = "fuse-python";
version = "1.0.7";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-MhiAY2UkCM1HKuu2+S0135LIu0IAk3H4yJJ7s35r3Rs=";
};
buildInputs = [ fuse ];
postPatch = ''
substituteInPlace setup.py \
--replace-fail 'pkg-config' "${stdenv.cc.targetPrefix}pkg-config"
'';
nativeBuildInputs = [ pkg-config ];
build-system = [ setuptools ];
buildInputs = [ fuse ];
# no tests implemented
doCheck = false;