summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authornyanloutre <paul@nyanlout.re>2020-12-07 20:35:18 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-12-08 12:30:56 -0800
commit925b70cd964ceaedee26fde9b19cc4c4f081196a (patch)
tree99b77a58a93639dcacdaeb6861c5120d684da850 /pkgs
parent799e33084b6f4580278790d7335a004c4ac80d68 (diff)
pythonPackages.pyfuse3: init at 3.1.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pyfuse3/default.nix42
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyfuse3/default.nix b/pkgs/development/python-modules/pyfuse3/default.nix
new file mode 100644
index 000000000000..33479cc66e40
--- /dev/null
+++ b/pkgs/development/python-modules/pyfuse3/default.nix
@@ -0,0 +1,42 @@
+{ lib, buildPythonPackage, fetchPypi, fetchpatch, pkg-config, fuse3, trio, pytestCheckHook, pytest-trio, which }:
+
+buildPythonPackage rec {
+ pname = "pyfuse3";
+ version = "3.1.1";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "9feb42a8639dc4815522ee6af6f7221552cfd2df1c7a7e9df96767be65e18667";
+ };
+
+ patches = [
+ # Fixes tests with pytest 6, to be removed in next stable version
+ (fetchpatch {
+ url = "https://github.com/libfuse/pyfuse3/commit/0070eddfc33fc2fba8eb4fe9353a2d2fa1ae575b.patch";
+ sha256 = "0lb4x1j31ihs3qkn61x41k2vqwcjl2fp1c2qx2jg9br6yqhjmg3b";
+ })
+ ];
+
+ 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.gpl2;
+ maintainers = with maintainers; [ nyanloutre ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index a316cc2ce91c..34165a22dece 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5129,6 +5129,8 @@ in {
pyfttt = callPackage ../development/python-modules/pyfttt { };
+ pyfuse3 = callPackage ../development/python-modules/pyfuse3 { };
+
pyfxa = callPackage ../development/python-modules/pyfxa { };
pygal = callPackage ../development/python-modules/pygal { };