borgmatic: Add passthru.tests.version

This commit is contained in:
Damien Cassou 2022-09-11 20:16:48 +02:00
parent dca7412a8b
commit 31d2aff243
No known key found for this signature in database
GPG Key ID: B68746238E59B548

View File

@ -1,4 +1,4 @@
{ borgbackup, coreutils, lib, python3Packages, systemd, installShellFiles }:
{ borgbackup, coreutils, lib, python3Packages, systemd, installShellFiles, borgmatic, testers }:
python3Packages.buildPythonApplication rec {
pname = "borgmatic";
@ -41,6 +41,8 @@ python3Packages.buildPythonApplication rec {
--replace sleep ${coreutils}/bin/sleep
'';
passthru.tests.version = testers.testVersion { package = borgmatic; };
meta = with lib; {
description = "Simple, configuration-driven backup software for servers and workstations";
homepage = "https://torsion.org/borgmatic/";