3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #135206 from feijoas/zfs_autobackup

zfs-autobackup: init at 3.1
This commit is contained in:
Maximilian Bosch 2021-09-12 12:27:07 +02:00 committed by GitHub
commit 13d9d33375
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -10564,6 +10564,8 @@ with pkgs;
zerofree = callPackage ../tools/filesystems/zerofree { };
zfs-autobackup = callPackage ../tools/backup/zfs-autobackup { };
zfsbackup = callPackage ../tools/backup/zfsbackup { };
zfstools = callPackage ../tools/filesystems/zfstools { };