about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Brandt <alunduil@gmail.com>2019-07-21 08:29:39 -0700
committerAlex Brandt <alunduil@gmail.com>2019-08-02 08:04:21 -0700
commit29bdb1c67253054982448f6c4e8bc3d5c5ee3c8a (patch)
tree9610bee8766a4b9e0498aca938a5f1d9f81b0a11
parent2e7355ff13a58347ff3ddc1139413b89ea313bf9 (diff)
downloadnixlib-29bdb1c67253054982448f6c4e8bc3d5c5ee3c8a.tar
nixlib-29bdb1c67253054982448f6c4e8bc3d5c5ee3c8a.tar.gz
nixlib-29bdb1c67253054982448f6c4e8bc3d5c5ee3c8a.tar.bz2
nixlib-29bdb1c67253054982448f6c4e8bc3d5c5ee3c8a.tar.lz
nixlib-29bdb1c67253054982448f6c4e8bc3d5c5ee3c8a.tar.xz
nixlib-29bdb1c67253054982448f6c4e8bc3d5c5ee3c8a.tar.zst
nixlib-29bdb1c67253054982448f6c4e8bc3d5c5ee3c8a.zip
zfs-replicate: init at 1.1.11
Used by zfs.autoReplication module.
-rw-r--r--pkgs/tools/backup/zfs-replicate/default.nix42
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/backup/zfs-replicate/default.nix b/pkgs/tools/backup/zfs-replicate/default.nix
new file mode 100644
index 000000000000..83fa76b0800e
--- /dev/null
+++ b/pkgs/tools/backup/zfs-replicate/default.nix
@@ -0,0 +1,42 @@
+{ buildPythonApplication, click, fetchPypi, hypothesis, mypy, pytest
+, pytestcov, pytestrunner, stdenv, stringcase
+}:
+
+buildPythonApplication rec {
+  pname = "zfs-replicate";
+  version = "1.1.11";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0386xc6rw6bhzw2a08g90afb3snqhm1ikx65bjfh22ha69fwmga8";
+  };
+
+  checkInputs = [
+    hypothesis
+    mypy
+    pytest
+    pytestcov
+  ];
+
+  buildInputs = [
+    pytestrunner
+  ];
+
+  propagatedBuildInputs = [
+    click
+    stringcase
+  ];
+
+  doCheck = true;
+
+  checkPhase = ''
+    pytest --doctest-modules
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/alunduil/zfs-replicate;
+    description = "ZFS Snapshot Replication";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ alunduil ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 1d4295586fa2..8f781dae9c35 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24563,4 +24563,6 @@ in
   dapper = callPackage ../development/tools/dapper { };
 
   kube3d =  callPackage ../applications/networking/cluster/kube3d {};
+
+  zfs-replicate = python3Packages.callPackage ../tools/backup/zfs-replicate { };
 }