me
/
guix
Archived
1
0
Fork 0

gnu: vdirsyncer: Use G-expressions.

* gnu/packages/dav.scm (vdirsyncer)[arguments]:
Rewrite as G-expressions.
master
Tobias Geerinckx-Rice 2023-07-09 02:00:01 +02:00
parent a4a47b49c8
commit 25e4acb84e
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 18 additions and 14 deletions

View File

@ -24,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 download) #:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix licenses) #:use-module (guix licenses)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix git-download) #:use-module (guix git-download)
@ -131,20 +132,23 @@ efficient syncing
"1fl21m10ghrpmkqa12g0qri99cxk9879pkb60jd4b4w2mgp8q1gx")))) "1fl21m10ghrpmkqa12g0qri99cxk9879pkb60jd4b4w2mgp8q1gx"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:tests? #f ; The test suite is very flakey. (list
#:phases (modify-phases %standard-phases #:tests? #f ; the test suite is very flakey
(replace 'check #:phases
(lambda* (#:key inputs outputs tests? #:allow-other-keys) #~(modify-phases %standard-phases
(add-installed-pythonpath inputs outputs) (replace 'check
(setenv "DETERMINISTIC_TESTS" "true") (lambda* (#:key inputs outputs tests? #:allow-other-keys)
(setenv "DAV_SERVER" "radicale") (add-installed-pythonpath inputs outputs)
(setenv "REMOTESTORAGE_SERVER" "skip") (setenv "DETERMINISTIC_TESTS" "true")
(if tests? (setenv "DAV_SERVER" "radicale")
(invoke "make" "test")))) (setenv "REMOTESTORAGE_SERVER" "skip")
(add-after 'unpack 'patch-version-call (if tests?
(lambda _ (invoke "make" "test"))))
(substitute* "docs/conf.py" (add-after 'unpack 'patch-version-call
(("^release.*") (string-append "release = '" ,version "'\n")))))))) (lambda _
(substitute* "docs/conf.py"
(("^release.*")
(string-append "release = '" #$version "'\n"))))))))
(native-inputs (native-inputs
(list python-setuptools-scm (list python-setuptools-scm
python-sphinx python-sphinx