1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchPypi,
6 pkg-config,
7 setuptools,
8 fuse,
9}:
10
11buildPythonPackage rec {
12 pname = "fuse-python";
13 version = "1.0.9";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit version;
18 pname = "fuse_python";
19 hash = "sha256-ntWVd8NqshjXAKooOfAh8SwlKzVxhgV1crmOGbwqhYk=";
20 };
21
22 postPatch = ''
23 substituteInPlace setup.py \
24 --replace-fail 'pkg-config' "${stdenv.cc.targetPrefix}pkg-config"
25 '';
26
27 nativeBuildInputs = [ pkg-config ];
28
29 build-system = [ setuptools ];
30
31 buildInputs = [ fuse ];
32
33 # no tests implemented
34 doCheck = false;
35
36 pythonImportsCheck = [ "fuse" ];
37
38 meta = with lib; {
39 broken = stdenv.hostPlatform.isDarwin;
40 description = "Python bindings for FUSE";
41 homepage = "https://github.com/libfuse/python-fuse";
42 license = licenses.lgpl21;
43 maintainers = with maintainers; [ psyanticy ];
44 };
45}