Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, stdenv, buildPythonPackage, fetchPypi, setuptools, pkgs,}:
buildPythonPackage (finalAttrs: { pname = "fusepy"; version = "3.0.1"; pyproject = true;
src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-cv94PsL0PeOrOU4/dFdgW/BMjPKIovQGi0zeFB1O5r0="; };
# On macOS, users are expected to install macFUSE. This means fusepy should # be able to find libfuse in /usr/local/lib. patchPhase = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' substituteInPlace fuse.py --replace-fail \ "find_library('fuse')" "'${lib.getLib pkgs.fuse3}/lib/libfuse3.so'" '';
build-system = [ setuptools ];
dependencies = [ pkgs.fuse3 ];
# No tests included doCheck = false;
pythonImportsCheck = lib.optionals (!stdenv.hostPlatform.isDarwin) [ "fuse" ];
meta = { description = "Simple ctypes bindings for FUSE"; longDescription = '' Python module that provides a simple interface to FUSE and MacFUSE. It's just one file and is implemented using ctypes. ''; homepage = "https://github.com/terencehonles/fusepy"; license = lib.licenses.isc; platforms = lib.platforms.unix; };})