mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
9d1f56beda
Diff: https://github.com/EnterpriseDB/barman/compare/release/3.4.0...release/3.7.0 Changelog: https://github.com/EnterpriseDB/barman/blob/release/3.7.0/NEWS
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, python3Packages
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "barman";
|
|
version = "3.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "EnterpriseDB";
|
|
repo = pname;
|
|
rev = "refs/tags/release/${version}";
|
|
hash = "sha256-5mecCg5c+fu6WUgmNEL4BR+JCild02YAuYgLwO1MGnI=";
|
|
};
|
|
|
|
patches = [
|
|
./unwrap-subprocess.patch
|
|
];
|
|
|
|
nativeCheckInputs = 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"
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
# FsOperationFailed
|
|
"test_get_file_mode"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.pgbarman.org/";
|
|
description = "Backup and Recovery Manager for PostgreSQL";
|
|
changelog = "https://github.com/EnterpriseDB/barman/blob/release/${version}/NEWS";
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|