nixpkgs/pkgs/development/python-modules/llfuse/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2021-03-26 11:41:34 +00:00
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, contextlib2
2021-03-26 11:41:34 +00:00
, cython
, fuse
, pkg-config
, pytestCheckHook
, python
, which
}:
buildPythonPackage rec {
pname = "llfuse";
2021-03-26 11:41:34 +00:00
version = "1.4.1";
2021-03-26 11:41:34 +00:00
disabled = pythonOlder "3.5";
2021-03-26 11:41:34 +00:00
src = fetchFromGitHub {
owner = "python-llfuse";
repo = "python-llfuse";
rev = "release-${version}";
sha256 = "1dcpdg6cpkmdbyg66fgrylj7dp9zqzg5bf23y6m6673ykgxlv480";
};
2021-03-26 11:41:34 +00:00
nativeBuildInputs = [ cython pkg-config ];
buildInputs = [ fuse ];
propagatedBuildInputs = [ contextlib2 ];
2021-03-26 11:41:34 +00:00
preBuild = ''
${python.interpreter} setup.py build_cython
'';
# On Darwin, the test requires macFUSE to be installed outside of Nix.
doCheck = !stdenv.isDarwin;
2021-03-26 11:41:34 +00:00
checkInputs = [ pytestCheckHook which ];
disabledTests = [
"test_listdir" # accesses /usr/bin
];
meta = with lib; {
description = "Python bindings for the low-level FUSE API";
homepage = "https://github.com/python-llfuse/python-llfuse";
license = licenses.lgpl2Plus;
platforms = platforms.unix;
2021-03-26 11:41:34 +00:00
maintainers = with maintainers; [ bjornfor dotlambda ];
};
}