diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2021-09-12 12:27:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-12 12:27:07 +0200 |
commit | 13d9d33375cadc25bc718e9c5c51a62895aac0c1 (patch) | |
tree | cbc5bb7b723885e2c210646df8c2c2b5610827c2 /pkgs/tools/backup | |
parent | fe5b774b628837c59299c490dc731f441827410d (diff) | |
parent | cb2d0338dc8d04758bb7c9026bac249ff087f2da (diff) |
Merge pull request #135206 from feijoas/zfs_autobackup
zfs-autobackup: init at 3.1
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r-- | pkgs/tools/backup/zfs-autobackup/default.nix | 33 |
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 ]; + }; +} |