depot/third_party/nixpkgs/pkgs/development/python-modules/fusepy/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

41 lines
1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
pkgs,
}:
buildPythonPackage rec {
pname = "fusepy";
version = "3.0.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1gg69qfi9pjcic3g98l8ya64rw2vc1bp8gsf76my6gglq8z7izvj";
};
propagatedBuildInputs = [ pkgs.fuse ];
# No tests included
doCheck = false;
# 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 \
"find_library('fuse')" "'${pkgs.fuse}/lib/libfuse.so'"
'';
meta = with lib; {
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 = licenses.isc;
platforms = platforms.unix;
};
}