summary refs log tree commit diff
path: root/pkgs/tools/misc/barman/default.nix
blob: da79110f9a82a160c9a49442cc161661ee1ba240 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ buildPythonApplication, fetchurl, lib
, dateutil, argcomplete, argh, psycopg2, boto3
}:

buildPythonApplication rec {
  pname = "barman";
  version = "2.12";

  outputs = [ "out" "man" ];
  src = fetchurl {
    url = "mirror://sourceforge/pgbarman/${version}/barman-${version}.tar.gz";
    sha256 = "Ts8I6tlP2GRp90OIIKXy+cRWWvUO3Sm86zq2dtVP5YE=";
  };

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