2020-01-24 19:09:03 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, buildPythonPackage, pkgconfig, pytest, fuse, attr, which
|
|
|
|
, contextlib2, osxfuse
|
2017-10-29 14:57:39 +00:00
|
|
|
}:
|
|
|
|
|
2020-01-24 19:09:03 +00:00
|
|
|
let
|
|
|
|
inherit (stdenv.lib) optionals optionalString;
|
|
|
|
in
|
|
|
|
|
2017-10-29 14:57:39 +00:00
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "llfuse";
|
2019-02-15 22:37:21 +00:00
|
|
|
version = "1.3.6";
|
2017-10-29 14:57:39 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://pypi/l/llfuse/${pname}-${version}.tar.bz2";
|
2019-02-15 22:37:21 +00:00
|
|
|
sha256 = "1j9fzxpgmb4rxxyl9jcf84zvznhgi3hnh4hg5vb0qaslxkvng8ii";
|
2017-10-29 14:57:39 +00:00
|
|
|
};
|
|
|
|
|
2020-01-24 19:09:03 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/python-llfuse/python-llfuse/pull/23 (2 commits)
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/python-llfuse/python-llfuse/commit/7579b0e626da1a7882b13caedcdbd4a834702e94.diff";
|
|
|
|
sha256 = "0vpybj4k222h20lyn0q7hz86ziqlapqs5701cknw8d11jakbhhb0";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/python-llfuse/python-llfuse/commit/438c00ab9e10d6c485bb054211c01b7f8524a736.diff";
|
|
|
|
sha256 = "1zhb05b7k3c9mjqshy9in8yzpbihy7f33x1myq5kdjip1k50cwrn";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-10-29 14:57:39 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-01-24 19:09:03 +00:00
|
|
|
buildInputs =
|
|
|
|
optionals stdenv.isLinux [ fuse ]
|
|
|
|
++ optionals stdenv.isDarwin [ osxfuse ];
|
|
|
|
checkInputs = [ pytest which ] ++
|
|
|
|
optionals stdenv.isLinux [ attr ];
|
2017-10-29 14:57:39 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ contextlib2 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-01-24 19:09:03 +00:00
|
|
|
py.test -k "not test_listdir" ${optionalString stdenv.isDarwin ''-m "not uses_fuse"''}
|
2017-10-29 14:57:39 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python bindings for the low-level FUSE API";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/python-llfuse/python-llfuse";
|
2017-10-29 14:57:39 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|