about summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2023-10-24 01:20:17 +0200
committerGitHub <noreply@github.com>2023-10-24 01:20:17 +0200
commitb152290c6c3b3f8a373075931ae64bed1a88ca83 (patch)
tree4aab64fa4e5ec3075637687d25b47dd1ec9bd168 /pkgs/tools/backup
parent477f6119fd06e347bbee79ada1abfe7e3653de53 (diff)
parentb3730275397cc3efc3dcecea3bcaa8df88c2d93a (diff)
Merge pull request #250845 from alunduil/zfs-replicate
zfs-replicate: 1.2.3 -> 3.1.0
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/zfs-replicate/default.nix33
1 files changed, 21 insertions, 12 deletions
diff --git a/pkgs/tools/backup/zfs-replicate/default.nix b/pkgs/tools/backup/zfs-replicate/default.nix
index 94cb3790a567f..b5cd6b9e50c2c 100644
--- a/pkgs/tools/backup/zfs-replicate/default.nix
+++ b/pkgs/tools/backup/zfs-replicate/default.nix
@@ -1,22 +1,34 @@
-{ buildPythonApplication, click, fetchPypi, hypothesis, pytest
-, lib, stringcase
+{ buildPythonApplication
+, click
+, fetchPypi
+, hypothesis
+, lib
+, poetry-core
+, pytest
+, pytestCheckHook
+, stringcase
 }:
 
 buildPythonApplication rec {
-  pname = "zfs-replicate";
-  version = "1.2.3";
+  pname = "zfs_replicate";
+  version = "3.1.4";
+  format = "pyproject";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "b2cb9d4670a6e12d14a446c10d857862e91af6e4526f607e08b41bde89953bb8";
+    hash = "sha256-mRINo20/uFlWtP5W7w+D2E9o89hlAsqZmBjuv0qWP9k=";
   };
 
   postPatch = ''
-    sed -i setup.cfg \
-      -e '/--cov.*/d'
+    sed -i pyproject.toml -e '/--cov[^"]*/d'
   '';
 
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
   nativeCheckInputs = [
+    pytestCheckHook
     hypothesis
     pytest
   ];
@@ -26,11 +38,8 @@ buildPythonApplication rec {
     stringcase
   ];
 
-  doCheck = true;
-
-  checkPhase = ''
-    pytest --doctest-modules
-  '';
+  # Current releases do not include tests.
+  doCheck = false;
 
   meta = with lib; {
     homepage = "https://github.com/alunduil/zfs-replicate";