about summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-09-12 12:01:10 +0000
committerGitHub <noreply@github.com>2021-09-12 12:01:10 +0000
commitacd45cb351d937842dbe61f090d3f1e94008ca11 (patch)
tree687395f83e3156d031d1dbf0181cb363539b359d /pkgs/tools/backup
parent01ab36d8752c2efe901136f19c18ea309b995ac0 (diff)
parente26b155274221a56a0ff23f0cfcce34222712c58 (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/zfs-autobackup/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/backup/zfs-autobackup/default.nix b/pkgs/tools/backup/zfs-autobackup/default.nix
new file mode 100644
index 0000000000000..f6a684084661a
--- /dev/null
+++ b/pkgs/tools/backup/zfs-autobackup/default.nix
@@ -0,0 +1,33 @@
+{ lib, python3Packages }:
+
+let
+  pythonPackages = python3Packages;
+
+in
+pythonPackages.buildPythonApplication rec {
+  pname = "zfs_autobackup";
+  version = "3.1";
+
+  src = pythonPackages.fetchPypi {
+    inherit pname version;
+    sha256 = "42c22001717b3d7cfdae6297fedc11b2dd1eb2a4bd25b6bb1c9232dd3b70ad67";
+  };
+
+  # argparse is part of the standardlib
+  prePatch = ''
+    substituteInPlace setup.py --replace "argparse" ""
+  '';
+
+  propagatedBuildInputs = with pythonPackages; [ colorama ];
+
+  # tests need zfs filesystem
+  doCheck = false;
+  pythonImportsCheck = [ "colorama" "argparse" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/psy0rz/zfs_autobackup";
+    description = "ZFS backup, replicationand snapshot tool";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ mschneider ];
+  };
+}