nixpkgs/pkgs/tools/misc/barman/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.1 KiB
Nix
Raw Normal View History

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