nixpkgs/pkgs/development/python-modules/fuse-python/default.nix
2025-01-12 15:29:43 +01:00

45 lines
892 B
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchPypi,
pkg-config,
setuptools,
fuse,
}:
buildPythonPackage rec {
pname = "fuse-python";
version = "1.0.9";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "fuse_python";
hash = "sha256-ntWVd8NqshjXAKooOfAh8SwlKzVxhgV1crmOGbwqhYk=";
};
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;
pythonImportsCheck = [ "fuse" ];
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "Python bindings for FUSE";
homepage = "https://github.com/libfuse/python-fuse";
license = licenses.lgpl21;
maintainers = with maintainers; [ psyanticy ];
};
}