Files
nixpkgs/pkgs/development/python-modules/fuse-python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
890 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 = {
broken = stdenv.hostPlatform.isDarwin;
description = "Python bindings for FUSE";
homepage = "https://github.com/libfuse/python-fuse";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ psyanticy ];
};
}