depot/third_party/nixpkgs/pkgs/tools/misc/barman/default.nix
Default email b96e6f4393 Project import generated by Copybara.
GitOrigin-RevId: 20887e4bbfdae3aed6bfa1f53ddf138ee325515e
2021-07-03 21:40:35 -05:00

29 lines
823 B
Nix

{ buildPythonApplication, fetchurl, lib
, python-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 = [ python-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;
};
}