2021-10-28 06:52:43 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, python3Packages
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2021-10-28 06:52:43 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "barman";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "3.1.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EnterpriseDB";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/release/${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-xRyKCpO2eBe5lI0pQW8wUee/5ZMDEo7/FLORrp3Sduk=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
patches = [
|
|
|
|
./unwrap-subprocess.patch
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
mock
|
2022-07-14 12:49:19 +00:00
|
|
|
python-snappy
|
|
|
|
google-cloud-storage
|
2021-10-28 06:52:43 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
argcomplete
|
|
|
|
azure-identity
|
|
|
|
azure-storage-blob
|
|
|
|
boto3
|
|
|
|
psycopg2
|
|
|
|
python-dateutil
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Assertion error
|
|
|
|
"test_help_output"
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://www.pgbarman.org/";
|
|
|
|
description = "Backup and Recovery Manager for PostgreSQL";
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
2021-10-28 06:52:43 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|