summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-08-10 19:09:49 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-23 16:58:36 +0100
commitcafc06a51a063930d031af9ac9bc5a38a17f4456 (patch)
treea89b8e87cb97f42d38d5afdd846deda3621ba732
parente2a858ee268bb46aeaa9a1920a978ce1383ae9f5 (diff)
gnu: vdirsyncer: Fix tests, reduce closure size.
* gnu/packages/dav.scm (vdirsyncer): Update to 0.19.3. [arguments] <phases>: Add 'relax-requirements, and 'pre-check. [native-inputs]: Remove python-sphinx, python-wheel, python-hypothesis, and python-pytest-asyncio; add python-pytest-asyncio-0.26. Change-Id: I81161cc8460a15b5a5cf9b6f525c060de96609a6
-rw-r--r--gnu/packages/dav.scm25
1 files changed, 15 insertions, 10 deletions
diff --git a/gnu/packages/dav.scm b/gnu/packages/dav.scm
index 00825082b6..c156d55f33 100644
--- a/gnu/packages/dav.scm
+++ b/gnu/packages/dav.scm
@@ -178,20 +178,25 @@ efficient syncing
(lambda _
(substitute* "docs/conf.py"
(("^release.*")
- (string-append "release = '" #$version "'\n"))))))))
+ (string-append "release = '" #$version "'\n")))))
+ (add-after 'unpack 'relax-requirements
+ ;; See: <https://github.com/pimutils/vdirsyncer/issues/1111>.
+ (lambda _
+ (substitute* "setup.py"
+ (("aiostream>=0.4.3,<0.5.0")
+ "aiostream"))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "DETERMINISTIC_TESTS" "true"))))))
(native-inputs
- (list python-setuptools
- python-setuptools-scm
- python-sphinx
- python-wheel
- ;; Required for testing
- python-aioresponses
- python-hypothesis
- python-trustme
+ (list python-aioresponses
python-pytest
- python-pytest-asyncio
python-pytest-cov
+ python-pytest-asyncio-0.26
python-pytest-httpserver
+ python-setuptools
+ python-setuptools-scm
+ python-trustme
radicale))
(inputs
(list python-aiohttp