about summary refs log tree commit diff
path: root/pkgs/tools/misc/barman
diff options
context:
space:
mode:
authorfreezeboy <freezeboy@users.noreply.github.com>2020-09-13 05:34:16 +0200
committerJon <jonringer@users.noreply.github.com>2020-09-13 10:26:03 -0700
commit1be6ac06ab633f539e309cdfe090a948d23a8901 (patch)
treec19d6026b0093245c59a50bb894f35b0cf432310 /pkgs/tools/misc/barman
parent5e891fd07339fa6e388e75e07637e8de1088cca1 (diff)
barman: init 2.11
Diffstat (limited to 'pkgs/tools/misc/barman')
-rw-r--r--pkgs/tools/misc/barman/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/barman/default.nix b/pkgs/tools/misc/barman/default.nix
new file mode 100644
index 0000000000000..2105ad0ae0178
--- /dev/null
+++ b/pkgs/tools/misc/barman/default.nix
@@ -0,0 +1,29 @@
+{ buildPythonApplication, fetchurl, lib
+, dateutil, argcomplete, argh, psycopg2, boto3
+}:
+
+buildPythonApplication rec {
+  pname = "barman";
+  version = "2.11";
+
+  outputs = [ "out" "man" ];
+  src = fetchurl {
+    url = "mirror://sourceforge/pgbarman/${version}/barman-${version}.tar.gz";
+    sha256 = "0w5lh4aavab9ynfy2mq09ga6j4vss4k0vlc3g6f5a9i4175g9pmr";
+  };
+
+  propagatedBuildInputs = [ dateutil argh psycopg2 boto3 argcomplete ];
+
+  # Tests are not present in tarball
+  checkPhase = ''
+    $out/bin/barman --help > /dev/null
+  '';
+
+  meta = with lib; {
+    homepage = "https://www.2ndquadrant.com/en/resources/barman/";
+    description = "Backup and Disaster Recovery Manager for PostgreSQL";
+    maintainers = with maintainers; [ freezeboy ];
+    license = licenses.gpl2;
+    platforms = platforms.unix;
+  };
+}