2020-09-25 04:45:31 +00:00
|
|
|
{ buildPythonApplication, fetchurl, lib
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil, argcomplete, argh, psycopg2, boto3
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "barman";
|
2020-12-29 15:07:52 +00:00
|
|
|
version = "2.12";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/pgbarman/${version}/barman-${version}.tar.gz";
|
2020-12-29 15:07:52 +00:00
|
|
|
sha256 = "Ts8I6tlP2GRp90OIIKXy+cRWWvUO3Sm86zq2dtVP5YE=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = [ python-dateutil argh psycopg2 boto3 argcomplete ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|