nixpkgs/pkgs/development/python-modules/llfuse/default.nix
midchildan 24ec2cd1ed
llfuse: disable tests on Darwin (#117695)
Fixes #117665. The tests require macFUSE[1], an external dependency to
be installed.

[1]: https://osxfuse.github.io/
2021-03-26 19:18:29 +01:00

53 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 ];
};
}