1{ lib, buildPythonPackage, fetchPypi, pkg-config, fuse3, trio, pytestCheckHook, pytest-trio, which }:
2
3buildPythonPackage rec {
4 pname = "pyfuse3";
5 version = "3.2.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "22d146dac59a8429115e9a93317975ea54b35e0278044a94d3fac5b4ad5f7e33";
10 };
11
12 nativeBuildInputs = [ pkg-config ];
13
14 buildInputs = [ fuse3 ];
15
16 propagatedBuildInputs = [ trio ];
17
18 checkInputs = [
19 pytestCheckHook
20 pytest-trio
21 which
22 fuse3
23 ];
24
25 # Checks if a /usr/bin directory exists, can't work on NixOS
26 disabledTests = [ "test_listdir" ];
27
28 meta = with lib; {
29 description = "Python 3 bindings for libfuse 3 with async I/O support";
30 homepage = "https://github.com/libfuse/pyfuse3";
31 license = licenses.lgpl2Plus;
32 maintainers = with maintainers; [ nyanloutre ];
33 };
34}