nixpkgs/pkgs/by-name/ba/barman/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

65 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "barman";
version = "3.11.1";
pyproject = true;
src = fetchFromGitHub {
owner = "EnterpriseDB";
repo = "barman";
rev = "refs/tags/release/${version}";
hash = "sha256-X39XOv8HJdSjMjMMnmB7Gxjseg5k/LuKICTxapcHVsU=";
};
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
pytestCheckHook
];
disabledTests =
[
# Assertion error
"test_help_output"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# FsOperationFailed
"test_get_file_mode"
];
meta = with lib; {
description = "Backup and Recovery Manager for PostgreSQL";
homepage = "https://www.pgbarman.org/";
changelog = "https://github.com/EnterpriseDB/barman/blob/release/${version}/NEWS";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ freezeboy ];
platforms = platforms.unix;
};
}