python312Packages.fuse: fix cross build, cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user