depot/third_party/nixpkgs/pkgs/tools/misc/barman/default.nix
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

48 lines
968 B
Nix

{ fetchFromGitHub
, lib
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "barman";
version = "3.1.0";
src = fetchFromGitHub {
owner = "EnterpriseDB";
repo = pname;
rev = "refs/tags/release/${version}";
sha256 = "sha256-xRyKCpO2eBe5lI0pQW8wUee/5ZMDEo7/FLORrp3Sduk=";
};
patches = [
./unwrap-subprocess.patch
];
checkInputs = with python3Packages; [
mock
python-snappy
google-cloud-storage
pytestCheckHook
];
propagatedBuildInputs = with python3Packages; [
argcomplete
azure-identity
azure-storage-blob
boto3
psycopg2
python-dateutil
];
disabledTests = [
# Assertion error
"test_help_output"
];
meta = with lib; {
homepage = "https://www.pgbarman.org/";
description = "Backup and Recovery Manager for PostgreSQL";
maintainers = with maintainers; [ freezeboy ];
license = licenses.gpl3Plus;
platforms = platforms.unix;
};
}