about summary refs log tree commit diff
path: root/pkgs/tools/misc/barman
diff options
context:
space:
mode:
authorrembo10 <801525+rembo10@users.noreply.github.com>2021-10-24 22:01:35 +0530
committerGitHub <noreply@github.com>2021-10-24 18:31:35 +0200
commitc7788a8fecb1c719e2665a513e54cda847eb1239 (patch)
treec87c3f80bdf9bb15f0ee950581e657cdb2d35d58 /pkgs/tools/misc/barman
parent7fdeceecd0410696cc525c07d653b7bab2301a16 (diff)
barman: 2.12 -> 2.15 (#142098)
Co-authored-by: rembo10 <rembo10@users.noreply.github.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/misc/barman')
-rw-r--r--pkgs/tools/misc/barman/default.nix43
1 files changed, 26 insertions, 17 deletions
diff --git a/pkgs/tools/misc/barman/default.nix b/pkgs/tools/misc/barman/default.nix
index ef84981a9d951..048fbeba6ffbb 100644
--- a/pkgs/tools/misc/barman/default.nix
+++ b/pkgs/tools/misc/barman/default.nix
@@ -1,29 +1,38 @@
-{ buildPythonApplication, fetchurl, lib
-, python-dateutil, argcomplete, argh, psycopg2, boto3
+{ fetchFromGitHub
+, lib
+, python3Packages
 }:
-
-buildPythonApplication rec {
+python3Packages.buildPythonApplication rec {
   pname = "barman";
-  version = "2.12";
+  version = "2.15";
 
-  outputs = [ "out" "man" ];
-  src = fetchurl {
-    url = "mirror://sourceforge/pgbarman/${version}/barman-${version}.tar.gz";
-    sha256 = "Ts8I6tlP2GRp90OIIKXy+cRWWvUO3Sm86zq2dtVP5YE=";
+  src = fetchFromGitHub {
+    owner = "EnterpriseDB";
+    repo = pname;
+    rev = "release/${version}";
+    sha256 = "127cqndg0405rad9jzba1mfhpqmyfa3kx16w345kd4n822w17ak9";
   };
 
-  propagatedBuildInputs = [ python-dateutil argh psycopg2 boto3 argcomplete ];
+  checkInputs = with python3Packages; [
+    mock
+    pytestCheckHook
+  ];
 
-  # Tests are not present in tarball
-  checkPhase = ''
-    $out/bin/barman --help > /dev/null
-  '';
+  propagatedBuildInputs = with python3Packages; [
+    argcomplete
+    argh
+    azure-identity
+    azure-storage-blob
+    boto3
+    psycopg2
+    python-dateutil
+  ];
 
   meta = with lib; {
-    homepage = "https://www.2ndquadrant.com/en/resources/barman/";
-    description = "Backup and Disaster Recovery Manager for PostgreSQL";
+    homepage = "https://www.pgbarman.org/";
+    description = "Backup and Recovery Manager for PostgreSQL";
     maintainers = with maintainers; [ freezeboy ];
-    license = licenses.gpl2;
+    license = licenses.gpl3Plus;
     platforms = platforms.unix;
   };
 }