Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 42 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, stdenv, buildPythonPackage, fetchFromGitHub, setuptools, fuse3,}:
let version = "3.1.1";inbuildPythonPackage { pname = "mfusepy"; inherit version; pyproject = true;
src = fetchFromGitHub { owner = "mxmlnkn"; repo = "mfusepy"; tag = "v${version}"; hash = "sha256-k7CxATpFTIZfQxnz8aYuyeooFY64JZl7Z8jfH2CtehM="; };
# If fuse library path cannot be found, use fuse library path in nixpkgs postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace mfusepy.py \ --replace-fail "_libfuse_path = find_library('fuse3')" '_libfuse_path = "${lib.getLib fuse3}/lib/libfuse3.so.4"' '';
build-system = [ setuptools ];
# https://github.com/NixOS/nixpkgs/blob/1e1947e8b7962c914b725e8b821e311229e632ae/doc/packages/fuse.section.md?plain=1#L10 pythonImportsCheck = lib.optionals stdenv.hostPlatform.isLinux [ "mfusepy" ];
meta = { description = "Ctypes bindings for the high-level API in libfuse 2 and 3"; homepage = "https://github.com/mxmlnkn/mfusepy"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ kyehn ]; };}