From 910c1ee7ce163b8d4c3bc6d15c645be34b46a9c2 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 10 May 2024 00:54:13 +0200 Subject: gnu: borgmatic: Move to pyproject-build-system. * gnu/packages/backup.scm (borgmatic): [build-system]: Move to pyproject-build-system. [arguments]: Migrate 'check phase replacement to <#:test-flags>. <#:phases>: Add 'set-path phase. Change-Id: I916e87f10c75718c4e840d97eaa78623ed2a4fd3 Signed-off-by: Nicolas Goaziou --- gnu/packages/backup.scm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 281f951f78..12ee64e9dd 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2022 Feng Shu ;;; Copyright © 2023 Timo Wilken +;;; Copyright © 2024 Nicolas Graves ;;; Copyright © 2024 jgart ;;; ;;; This file is part of GNU Guix. @@ -1334,7 +1335,7 @@ compression parameters used by Gzip.") (uri (pypi-uri "borgmatic" version)) (sha256 (base32 "0im7kx9mq1gymid88wa6yxcif4bdqpz5lag5fp9kpm8r5k13p2sr")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases @@ -1351,14 +1352,12 @@ compression parameters used by Gzip.") (string-append start "'" (search-input-file inputs "bin/borg") "'"))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? + (add-before 'check 'set-path + (lambda _ ;; Tests require the installed executable. (setenv "PATH" (string-append #$output "/bin" ":" - (getenv "PATH"))) - (invoke "pytest"))))))) + (getenv "PATH")))))))) (inputs (list borg python-apprise python-colorama -- cgit v1.2.3 ion>
blob: 6c8afcc2498185c64818dd4ee1d875ca09fe4c0c (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env pytest

# This file is part of Haketilo
#
# Copyright (C) 2021, Wojtek Kosior
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the CC0 1.0 Universal License as published by
# the Creative Commons Corporation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# CC0 1.0 Universal License for more details.

[pytest]
markers =
    ext_data: define a custom testing extension for `webextension` fixture.
    get_page: define a url the `driver` fixture should navigate the browser to.