15 buildPythonPackage rec {
19 disabled = pythonOlder "3.5";
21 src = fetchFromGitHub {
22 owner = "python-llfuse";
23 repo = "python-llfuse";
24 rev = "release-${version}";
25 hash = "sha256-TnZnv439fLvg0WM96yx0dPSSz8Mrae6GDC9LiLFrgQ8=";
28 nativeBuildInputs = [ cython pkg-config ];
30 buildInputs = [ fuse ];
32 propagatedBuildInputs = [ contextlib2 ];
35 substituteInPlace setup.py \
36 --replace "'pkg-config'" "'${stdenv.cc.targetPrefix}pkg-config'"
40 ${python.pythonForBuild.interpreter} setup.py build_cython
43 # On Darwin, the test requires macFUSE to be installed outside of Nix.
44 doCheck = !stdenv.isDarwin;
45 checkInputs = [ pytestCheckHook which ];
48 "test_listdir" # accesses /usr/bin
52 description = "Python bindings for the low-level FUSE API";
53 homepage = "https://github.com/python-llfuse/python-llfuse";
54 license = licenses.lgpl2Plus;
55 platforms = platforms.unix;
56 maintainers = with maintainers; [ bjornfor dotlambda ];