mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: vdirsyncer: Move to pyproject-build-system and enable tests.
* gnu/packages/dav.scm (vdirsyncer): [build-system]: Move to pyproject-build-system. [arguments]<#:tests?>: Remove to enable tests. <#:test-flags>: Ignore test that require network connection. <#:phases>: Remove check phase replacement. Change-Id: Iafccfc65e3a847a0eecc26c179f435b9ec1fdfec Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
b4c39bb2db
commit
0b155564a2
1 changed files with 4 additions and 10 deletions
|
@ -5,6 +5,7 @@
|
||||||
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
||||||
;;; Copyright © 2021 Tanguy Le Carrour <tanguy@bioneland.org>
|
;;; Copyright © 2021 Tanguy Le Carrour <tanguy@bioneland.org>
|
||||||
;;; Copyright © 2022 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
;;; Copyright © 2022 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
||||||
|
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
|
|
||||||
(define-module (gnu packages dav)
|
(define-module (gnu packages dav)
|
||||||
#:use-module (guix build-system python)
|
#:use-module (guix build-system python)
|
||||||
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix licenses)
|
#:use-module (guix licenses)
|
||||||
|
@ -124,20 +126,12 @@ efficient syncing
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1fl21m10ghrpmkqa12g0qri99cxk9879pkb60jd4b4w2mgp8q1gx"))))
|
"1fl21m10ghrpmkqa12g0qri99cxk9879pkb60jd4b4w2mgp8q1gx"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:tests? #f ; the test suite is very flakey
|
#:test-flags '(list "-k" "not test_request_ssl")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(setenv "DETERMINISTIC_TESTS" "true")
|
|
||||||
(setenv "DAV_SERVER" "radicale")
|
|
||||||
(setenv "REMOTESTORAGE_SERVER" "skip")
|
|
||||||
(if tests?
|
|
||||||
(invoke "make" "test"))))
|
|
||||||
(add-after 'unpack 'patch-version-call
|
(add-after 'unpack 'patch-version-call
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "docs/conf.py"
|
(substitute* "docs/conf.py"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue