mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
barman: refactor
This commit is contained in:
parent
edf4b8c18b
commit
8730392567
|
@ -1,54 +1,64 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, stdenv
|
||||
, python3Packages
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "barman";
|
||||
version = "3.10.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "EnterpriseDB";
|
||||
repo = pname;
|
||||
repo = "barman";
|
||||
rev = "refs/tags/release/${version}";
|
||||
hash = "sha256-38r1CwS4BUqhzAUmBvxuqKquGfGlgSekKXe7EbumSe0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./unwrap-subprocess.patch
|
||||
patches = [ ./unwrap-subprocess.patch ];
|
||||
|
||||
build-system = with python3Packages; [
|
||||
distutils
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
argcomplete
|
||||
azure-identity
|
||||
azure-mgmt-compute
|
||||
azure-storage-blob
|
||||
boto3
|
||||
google-cloud-compute
|
||||
google-cloud-storage
|
||||
grpcio
|
||||
psycopg2
|
||||
python-dateutil
|
||||
python-snappy
|
||||
];
|
||||
|
||||
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"
|
||||
];
|
||||
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";
|
||||
homepage = "https://www.pgbarman.org/";
|
||||
changelog = "https://github.com/EnterpriseDB/barman/blob/release/${version}/NEWS";
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue