diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-03-21 09:35:18 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-28 22:00:00 +0000 |
| commit | c5075bc31d7f953e9e1fcecf1e13c6bdff096d74 (patch) | |
| tree | 0f207ca8b5fef762a0762c4ac72fdef2fd448a8c | |
| parent | 4d80135c49c3e9503c8d6395e421fca5e6adb361 (diff) | |
gnu: xandikos: Update to 0.3.3.
* gnu/packages/dav.scm (xandikos): Update to 0.3.3.
[source]: Switch to git-fetch.
[arguments]<#:test-backend>: Drop it (use pytest).
<#:phases>: Drop 'create-entrypoints phase replacement, fixed by
https://github.com/jelmer/xandikos/pull/563 in version 0.3.1.
[native-inputs]: Add python-pytest.
[propagated-inputs]: Replace python-dulwich-0.24 by python-dulwich.
Change-Id: I6de5cd2a35aeface02946d1cec8b76035ae70708
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/dav.scm | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/gnu/packages/dav.scm b/gnu/packages/dav.scm index b71d4dcf23b..ab87555dfd4 100644 --- a/gnu/packages/dav.scm +++ b/gnu/packages/dav.scm | |||
| @@ -169,43 +169,29 @@ clients.") | |||
| 169 | (define-public xandikos | 169 | (define-public xandikos |
| 170 | (package | 170 | (package |
| 171 | (name "xandikos") | 171 | (name "xandikos") |
| 172 | (version "0.3.0") | 172 | (version "0.3.3") |
| 173 | (source | 173 | (source |
| 174 | (origin | 174 | (origin |
| 175 | (method url-fetch) | 175 | (method git-fetch) |
| 176 | (uri (pypi-uri "xandikos" version)) | 176 | (uri (git-reference |
| 177 | (url "https://github.com/jelmer/xandikos") | ||
| 178 | (commit (string-append "v" version)))) | ||
| 179 | (file-name (git-file-name name version)) | ||
| 177 | (sha256 | 180 | (sha256 |
| 178 | (base32 "10j7qmwcrwql4ah6q8si3nf1ljwrx99w8ipiy85bzjd3qz2vackj")))) | 181 | (base32 "0db02hsdrrxpms9xfy8q5kkgsp5gxrgd15rgdjd5aw7lqpnhhmji")))) |
| 179 | (build-system pyproject-build-system) | 182 | (build-system pyproject-build-system) |
| 180 | (arguments | 183 | (arguments |
| 181 | (list | 184 | (list |
| 182 | #:test-backend #~'unittest | ||
| 183 | #:phases | 185 | #:phases |
| 184 | #~(modify-phases %standard-phases | 186 | #~(modify-phases %standard-phases |
| 185 | (replace 'create-entrypoints | ||
| 186 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 187 | (let ((sitedir (site-packages inputs outputs)) | ||
| 188 | (interpreter (which "python")) | ||
| 189 | (file-path (string-append #$output "/bin/xandikos"))) | ||
| 190 | (mkdir-p (string-append #$output "/bin")) | ||
| 191 | (call-with-output-file file-path | ||
| 192 | (lambda (port) | ||
| 193 | (format port "#!~a -sP | ||
| 194 | # Auto-generated entry point script. | ||
| 195 | import sys | ||
| 196 | import asyncio | ||
| 197 | from xandikos.__main__ import main | ||
| 198 | if __name__ == '__main__': | ||
| 199 | sys.exit(asyncio.run(main(sys.argv[1:])))~%" interpreter))) | ||
| 200 | (chmod file-path #o755)))) | ||
| 201 | (add-before 'check 'check-setup | 187 | (add-before 'check 'check-setup |
| 202 | (lambda _ | 188 | (lambda _ |
| 203 | (setenv "XANDIKOSPATH" (mkdtemp "/tmp/xandikospath-XXXXXX"))))))) | 189 | (setenv "XANDIKOSPATH" (mkdtemp "/tmp/xandikospath-XXXXXX"))))))) |
| 204 | (native-inputs (list python-setuptools)) | 190 | (native-inputs (list python-pytest python-setuptools)) |
| 205 | (propagated-inputs | 191 | (propagated-inputs |
| 206 | (list python-aiohttp | 192 | (list python-aiohttp |
| 207 | python-defusedxml | 193 | python-defusedxml |
| 208 | python-dulwich-0.24 | 194 | python-dulwich |
| 209 | python-icalendar | 195 | python-icalendar |
| 210 | python-jinja2 | 196 | python-jinja2 |
| 211 | python-multidict | 197 | python-multidict |
