2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3Packages,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "barman";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.11.1";
|
|
|
|
pyproject = true;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EnterpriseDB";
|
2024-09-19 14:19:46 +00:00
|
|
|
repo = "barman";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/release/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-X39XOv8HJdSjMjMMnmB7Gxjseg5k/LuKICTxapcHVsU=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
patches = [ ./unwrap-subprocess.patch ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = with python3Packages; [
|
|
|
|
distutils
|
|
|
|
setuptools
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = with python3Packages; [
|
2021-10-28 06:52:43 +00:00
|
|
|
argcomplete
|
|
|
|
azure-identity
|
2024-09-19 14:19:46 +00:00
|
|
|
azure-mgmt-compute
|
2021-10-28 06:52:43 +00:00
|
|
|
azure-storage-blob
|
|
|
|
boto3
|
2024-09-19 14:19:46 +00:00
|
|
|
google-cloud-compute
|
|
|
|
google-cloud-storage
|
|
|
|
grpcio
|
2021-10-28 06:52:43 +00:00
|
|
|
psycopg2
|
|
|
|
python-dateutil
|
2024-09-19 14:19:46 +00:00
|
|
|
python-snappy
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabledTests =
|
|
|
|
[
|
|
|
|
# Assertion error
|
|
|
|
"test_help_output"
|
|
|
|
]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-09-19 14:19:46 +00:00
|
|
|
# FsOperationFailed
|
|
|
|
"test_get_file_mode"
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
2021-10-28 06:52:43 +00:00
|
|
|
description = "Backup and Recovery Manager for PostgreSQL";
|
2024-09-19 14:19:46 +00:00
|
|
|
homepage = "https://www.pgbarman.org/";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/EnterpriseDB/barman/blob/release/${version}/NEWS";
|
2021-10-28 06:52:43 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|