mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
24ec2cd1ed
Fixes #117665. The tests require macFUSE[1], an external dependency to be installed. [1]: https://osxfuse.github.io/
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, contextlib2
|
|
, cython
|
|
, fuse
|
|
, pkg-config
|
|
, pytestCheckHook
|
|
, python
|
|
, which
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "llfuse";
|
|
version = "1.4.1";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-llfuse";
|
|
repo = "python-llfuse";
|
|
rev = "release-${version}";
|
|
sha256 = "1dcpdg6cpkmdbyg66fgrylj7dp9zqzg5bf23y6m6673ykgxlv480";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython pkg-config ];
|
|
|
|
buildInputs = [ fuse ];
|
|
|
|
propagatedBuildInputs = [ contextlib2 ];
|
|
|
|
preBuild = ''
|
|
${python.interpreter} setup.py build_cython
|
|
'';
|
|
|
|
# On Darwin, the test requires macFUSE to be installed outside of Nix.
|
|
doCheck = !stdenv.isDarwin;
|
|
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;
|
|
maintainers = with maintainers; [ bjornfor dotlambda ];
|
|
};
|
|
}
|