From a3cc156ce10c6045734e6b278c1c7bae44b54193 Mon Sep 17 00:00:00 2001
From: Jonas Heinrich <onny@project-insanity.org>
Date: Wed, 6 Jul 2022 16:52:01 +0200
Subject: [PATCH] barman: 2.17 -> 3.0.0

---
 pkgs/tools/misc/barman/default.nix | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/pkgs/tools/misc/barman/default.nix b/pkgs/tools/misc/barman/default.nix
index 699a38f3a879..4ad66a98ad5a 100644
--- a/pkgs/tools/misc/barman/default.nix
+++ b/pkgs/tools/misc/barman/default.nix
@@ -4,17 +4,19 @@
 }:
 python3Packages.buildPythonApplication rec {
   pname = "barman";
-  version = "2.17";
+  version = "3.0.0";
 
   src = fetchFromGitHub {
     owner = "EnterpriseDB";
     repo = pname;
     rev = "release/${version}";
-    sha256 = "0c4gcs4kglbb2qma4nlvw0ycj1wnsg934p9vs50dvqi9099hxkmb";
+    sha256 = "sha256-WLKtra1kNxvm4iO3NEhMNCSioHL9I8GIgkbtu95IyTQ=";
   };
 
   checkInputs = with python3Packages; [
     mock
+    python-snappy
+    google-cloud-storage
     pytestCheckHook
   ];
 
@@ -27,6 +29,11 @@ python3Packages.buildPythonApplication rec {
     python-dateutil
   ];
 
+  disabledTests = [
+    # Assertion error
+    "test_help_output"
+  ];
+
   meta = with lib; {
     homepage = "https://www.pgbarman.org/";
     description = "Backup and Recovery Manager for PostgreSQL";