Merge pull request #117684 from dotlambda/llfuse-1.4.1
This commit is contained in:
commit
eb7cfb4793
|
@ -1,42 +1,53 @@
|
||||||
{ lib, stdenv, fetchPypi, fetchpatch, buildPythonPackage, pkg-config, pytest, fuse, attr, which
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
, contextlib2
|
, contextlib2
|
||||||
|
, cython
|
||||||
|
, fuse
|
||||||
|
, pkg-config
|
||||||
|
, pytestCheckHook
|
||||||
|
, python
|
||||||
|
, which
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "llfuse";
|
pname = "llfuse";
|
||||||
version = "1.3.8";
|
version = "1.4.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.5";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "1g2cdhdqrb6m7655qp61pn61pwj1ql61cdzhr2jvl3w4i8877ddr";
|
src = fetchFromGitHub {
|
||||||
|
owner = "python-llfuse";
|
||||||
|
repo = "python-llfuse";
|
||||||
|
rev = "release-${version}";
|
||||||
|
sha256 = "1dcpdg6cpkmdbyg66fgrylj7dp9zqzg5bf23y6m6673ykgxlv480";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [ cython pkg-config ];
|
||||||
# fix tests with pytest 6
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/python-llfuse/python-llfuse/commit/1ed8b280d2544eedf8bf209761bef0d2519edd17.diff";
|
|
||||||
sha256 = "0wailfrr1i0n2m9ylwpr00jh79s7z3l36w7x19jx1x4djcz2hdps";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
|
||||||
|
|
||||||
buildInputs = [ fuse ];
|
buildInputs = [ fuse ];
|
||||||
|
|
||||||
checkInputs = [ pytest which ] ++
|
|
||||||
lib.optionals stdenv.isLinux [ attr ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ contextlib2 ];
|
propagatedBuildInputs = [ contextlib2 ];
|
||||||
|
|
||||||
checkPhase = ''
|
preBuild = ''
|
||||||
py.test -k "not test_listdir" ${lib.optionalString stdenv.isDarwin ''-m "not uses_fuse"''}
|
${python.interpreter} setup.py build_cython
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook which ];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"test_listdir" # accesses /usr/bin
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
"uses_fuse"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python bindings for the low-level FUSE API";
|
description = "Python bindings for the low-level FUSE API";
|
||||||
homepage = "https://github.com/python-llfuse/python-llfuse";
|
homepage = "https://github.com/python-llfuse/python-llfuse";
|
||||||
license = licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ bjornfor ];
|
maintainers = with maintainers; [ bjornfor dotlambda ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue