summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyfuse3/default.nix
blob: 0228c318c60424dbc49054b563c07fce900d6953 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, buildPythonPackage, fetchPypi, pkg-config, fuse3, trio, pytestCheckHook, pytest-trio, which }:

buildPythonPackage rec {
  pname = "pyfuse3";
  version = "3.2.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "22d146dac59a8429115e9a93317975ea54b35e0278044a94d3fac5b4ad5f7e33";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ fuse3 ];

  propagatedBuildInputs = [ trio ];

  checkInputs = [
    pytestCheckHook
    pytest-trio
    which
    fuse3
  ];

  # Checks if a /usr/bin directory exists, can't work on NixOS
  disabledTests = [ "test_listdir" ];

  meta = with lib; {
    description = "Python 3 bindings for libfuse 3 with async I/O support";
    homepage = "https://github.com/libfuse/pyfuse3";
    license = licenses.lgpl2Plus;
    maintainers = with maintainers; [ nyanloutre ];
  };
}