2023-01-27 11:56:35 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2022-11-03 12:37:15 +01:00
|
|
|
, stdenv
|
2021-10-24 18:31:35 +02:00
|
|
|
, python3Packages
|
2020-09-13 05:34:16 +02:00
|
|
|
}:
|
2023-01-27 11:56:35 +01:00
|
|
|
|
2021-10-24 18:31:35 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-09-13 05:34:16 +02:00
|
|
|
pname = "barman";
|
2023-01-27 00:46:10 +01:00
|
|
|
version = "3.4.0";
|
2020-09-13 05:34:16 +02:00
|
|
|
|
2021-10-24 18:31:35 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EnterpriseDB";
|
|
|
|
repo = pname;
|
2022-07-20 02:58:51 +02:00
|
|
|
rev = "refs/tags/release/${version}";
|
2023-01-27 11:56:35 +01:00
|
|
|
hash = "sha256-K5y5C+K/fMhgOcSsCMaIgY6ce9UUPszoyumsfNHKjBo=";
|
2020-09-13 05:34:16 +02:00
|
|
|
};
|
|
|
|
|
2022-07-19 23:46:09 +02:00
|
|
|
patches = [
|
|
|
|
./unwrap-subprocess.patch
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2021-10-24 18:31:35 +02:00
|
|
|
mock
|
2022-07-06 16:52:01 +02:00
|
|
|
python-snappy
|
|
|
|
google-cloud-storage
|
2021-10-24 18:31:35 +02:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-09-13 05:34:16 +02:00
|
|
|
|
2021-10-24 18:31:35 +02:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
argcomplete
|
|
|
|
azure-identity
|
|
|
|
azure-storage-blob
|
|
|
|
boto3
|
|
|
|
psycopg2
|
|
|
|
python-dateutil
|
|
|
|
];
|
2020-09-13 05:34:16 +02:00
|
|
|
|
2022-07-06 16:52:01 +02:00
|
|
|
disabledTests = [
|
|
|
|
# Assertion error
|
|
|
|
"test_help_output"
|
2022-11-03 12:37:15 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
# FsOperationFailed
|
|
|
|
"test_get_file_mode"
|
2022-07-06 16:52:01 +02:00
|
|
|
];
|
|
|
|
|
2020-09-13 05:34:16 +02:00
|
|
|
meta = with lib; {
|
2021-10-24 18:31:35 +02:00
|
|
|
homepage = "https://www.pgbarman.org/";
|
|
|
|
description = "Backup and Recovery Manager for PostgreSQL";
|
2023-01-27 11:56:35 +01:00
|
|
|
changelog = "https://github.com/EnterpriseDB/barman/blob/release/${version}/NEWS";
|
2020-09-13 05:34:16 +02:00
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
2021-10-24 18:31:35 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2020-09-13 05:34:16 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|