From 42488e8793ec0d846308faea33b045326cb5ff3e Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 26 Jul 2023 04:20:00 +0000 Subject: [PATCH] zfs-autobackup: 3.1 -> 3.1.3 Changelog: https://github.com/psy0rz/zfs_autobackup/releases/tag/v3.1.3 --- pkgs/tools/backup/zfs-autobackup/default.nix | 30 +++++++++----------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/pkgs/tools/backup/zfs-autobackup/default.nix b/pkgs/tools/backup/zfs-autobackup/default.nix index a7453119a9d0..abbc413278be 100644 --- a/pkgs/tools/backup/zfs-autobackup/default.nix +++ b/pkgs/tools/backup/zfs-autobackup/default.nix @@ -1,32 +1,30 @@ { lib, python3Packages, fetchPypi }: -let - pythonPackages = python3Packages; - -in -pythonPackages.buildPythonApplication rec { - pname = "zfs_autobackup"; - version = "3.1"; +python3Packages.buildPythonApplication rec { + pname = "zfs-autobackup"; + version = "3.1.3"; src = fetchPypi { - inherit pname version; - sha256 = "42c22001717b3d7cfdae6297fedc11b2dd1eb2a4bd25b6bb1c9232dd3b70ad67"; + inherit version; + pname = "zfs_autobackup"; + sha256 = "sha256-ckikq8Am81O0wkL4ozRBFTCa15PrmkD54A2qEY6kA5c="; }; - # argparse is part of the standardlib - prePatch = '' - substituteInPlace setup.py --replace "argparse" "" - ''; + nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ]; - propagatedBuildInputs = with pythonPackages; [ colorama ]; + propagatedBuildInputs = with python3Packages; [ colorama ]; + + pythonRemoveDeps = [ "argparse" ]; # tests need zfs filesystem doCheck = false; - pythonImportsCheck = [ "colorama" "argparse" ]; + + pythonImportsCheck = [ "zfs_autobackup" ]; meta = with lib; { - homepage = "https://github.com/psy0rz/zfs_autobackup"; description = "ZFS backup, replicationand snapshot tool"; + homepage = "https://github.com/psy0rz/zfs_autobackup"; + changelog = "https://github.com/psy0rz/zfs_autobackup/releases/tag/v${version}"; license = licenses.gpl3Only; maintainers = with maintainers; [ ]; };