borgmatic: refactor

This commit is contained in:
x123 2024-07-05 07:58:25 +02:00
parent b797a7d4ae
commit 148e75b7d7

View File

@ -1,17 +1,17 @@
{ lib {
, stdenv borgbackup,
, borgbackup borgmatic,
, coreutils coreutils,
, python3Packages enableSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
, fetchpatch fetchPypi,
, fetchPypi fetchpatch,
, systemd installShellFiles,
, enableSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd lib,
, installShellFiles python3Packages,
, borgmatic stdenv,
, testers systemd,
testers,
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "borgmatic"; pname = "borgmatic";
version = "1.8.11"; version = "1.8.11";
@ -44,13 +44,13 @@ python3Packages.buildPythonApplication rec {
colorama colorama
jsonschema jsonschema
packaging packaging
ruamel-yaml
requests requests
ruamel-yaml
setuptools setuptools
]; ];
passthru.optional-dependencies = { passthru.optional-dependencies = {
apprise = with python3Packages; [ apprise ]; apprise = [ python3Packages.apprise ];
}; };
postInstall = '' postInstall = ''
@ -72,11 +72,11 @@ python3Packages.buildPythonApplication rec {
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
meta = with lib; { meta = {
description = "Simple, configuration-driven backup software for servers and workstations"; description = "Simple, configuration-driven backup software for servers and workstations";
homepage = "https://torsion.org/borgmatic/"; homepage = "https://torsion.org/borgmatic/";
license = licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
platforms = platforms.all; platforms = lib.platforms.all;
maintainers = with maintainers; [ imlonghao ]; maintainers = with lib.maintainers; [ imlonghao ];
}; };
} }