diff options
author | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
---|---|---|
committer | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
commit | 47b4c9c854915df93893dbaa993accfacf9027fe (patch) | |
tree | 4f9b1742d63fcfbc94cc6b8d84f76c4d00c3a0b7 /px/packages/etesync.scm | |
parent | 0b426d7b7ed8e176bf464ef9e0683f74a6c9d20f (diff) |
rewrite: apply guix-reference formatting; cleanup some module imports
Diffstat (limited to 'px/packages/etesync.scm')
-rw-r--r-- | px/packages/etesync.scm | 289 |
1 files changed, 142 insertions, 147 deletions
diff --git a/px/packages/etesync.scm b/px/packages/etesync.scm index efea657..b8e3ef1 100644 --- a/px/packages/etesync.scm +++ b/px/packages/etesync.scm @@ -1,5 +1,6 @@ (define-module (px packages etesync) - #:use-module ((guix licenses) #:prefix license:) + #:use-module ((guix licenses) + #:prefix license:) #:use-module (ice-9 match) #:use-module (guix download) #:use-module (guix packages) @@ -29,53 +30,51 @@ (package (name "python-etebase") (version "0.31.2") - (source - (origin - (method url-fetch) - (uri - (string-append - "https://github.com/etesync/etebase-py/releases/download/v" version - "/etebase-" version - ;; This fails because releases are only available up to python 3.9 - ;; "-cp" (string-replace-substring (version-major+minor (package-version python)) "." "") - ;; "-cp" (string-replace-substring (version-major+minor (package-version python)) "." "") "-manylinux2010_" - "-cp39-cp39-manylinux2010_" - (match (or (%current-system) (%current-target-system)) - ("x86_64-linux" "x86_64") - ("i686-linux" "i686") - ("aarch64-linux" "aarch64")) - ".whl")) - (sha256 + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/etesync/etebase-py/releases/download/v" + version + "/etebase-" + version + ;; This fails because releases are only available up to python 3.9 + ;; "-cp" (string-replace-substring (version-major+minor (package-version python)) "." "") + ;; "-cp" (string-replace-substring (version-major+minor (package-version python)) "." "") "-manylinux2010_" + "-cp39-cp39-manylinux2010_" + (match (or (%current-system) + (%current-target-system)) + ("x86_64-linux" "x86_64") + ("i686-linux" "i686") + ("aarch64-linux" "aarch64")) + ".whl")) + (sha256 (base32 "19gf7zriarcac3l6hx4zw7gl175fxaz457gkl4kkjdfcq6g5pxas")))) (build-system gnu-build-system) (arguments - `(#:tests? #f + `(#:tests? #f #:validate-runpath? #f - #:phases - (modify-phases %standard-phases - (delete 'unpack) - (delete 'configure) - (delete 'build) - (replace 'install - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((source (assoc-ref %build-inputs "source")) - (python (assoc-ref inputs "python")) - (out (assoc-ref outputs "out")) - (bin (string-append out "/bin/")) - (target (string-append - %output "/lib/python" - ,(version-major+minor - (package-version python)) - "/site-packages/"))) - (mkdir-p target) - (invoke "unzip" source "-d" target) - #t)) - )))) - (native-inputs `(("coreutils" ,coreutils) - ("python" ,python-3) - ("unzip" ,unzip))) - (propagated-inputs `(("python-msgpack" ,python-msgpack))) - (home-page "https://www.etesync.com/") + #:phases (modify-phases %standard-phases + (delete 'unpack) + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((source (assoc-ref %build-inputs "source")) + (python (assoc-ref inputs "python")) + (out (assoc-ref outputs "out")) + (bin (string-append out "/bin/")) + (target (string-append %output "/lib/python" + ,(version-major+minor (package-version + python)) + "/site-packages/"))) + (mkdir-p target) + (invoke "unzip" source "-d" target) #t)))))) + (native-inputs `(("coreutils" ,coreutils) + ("python" ,python-3) + ("unzip" ,unzip))) + (propagated-inputs `(("python-msgpack" ,python-msgpack))) + (home-page "https://www.etesync.com/") (synopsis "A Python library for Etebase") (description "This package is implemented in Rust and exposes a Python API for people to use.") @@ -88,31 +87,31 @@ (source (origin (method url-fetch) - (uri (string-append "https://github.com/etesync/pyetesync/archive/v" version ".tar.gz")) + (uri (string-append "https://github.com/etesync/pyetesync/archive/v" + version ".tar.gz")) (sha256 (base32 "18z7fh8mg3h5zdp4zjshg29p495n03i6hh8nghpc9n79a6a4s8k3")))) (build-system python-build-system) (arguments - `(#:tests? #f)) - (native-inputs - `(("python" ,python) - ("python-appdirs" ,python-appdirs) - ("python-asn1crypto" ,python-asn1crypto) - ("python-attrs" ,python-attrs) - ("python-certifi" ,python-certifi) - ("python-cffi" ,python-cffi) - ("python-chardet" ,python-chardet) - ("python-idna" ,python-idna) - ("python-orderedmultidict" ,python-orderedmultidict) - ("python-packaging" ,python-packaging) - ("python-py" ,python-py) - ("python-pyasn1" ,python-pyasn1) - ("python-pycparser" ,python-pycparser) - ("python-pyparsing" ,python-pyparsing) - ("python-dateutil" ,python-dateutil) - ("python-pytz" ,python-pytz) - ("python-six" ,python-six) - ("python-urllib3" ,python-urllib3))) + `(#:tests? #f)) + (native-inputs `(("python" ,python) + ("python-appdirs" ,python-appdirs) + ("python-asn1crypto" ,python-asn1crypto) + ("python-attrs" ,python-attrs) + ("python-certifi" ,python-certifi) + ("python-cffi" ,python-cffi) + ("python-chardet" ,python-chardet) + ("python-idna" ,python-idna) + ("python-orderedmultidict" ,python-orderedmultidict) + ("python-packaging" ,python-packaging) + ("python-py" ,python-py) + ("python-pyasn1" ,python-pyasn1) + ("python-pycparser" ,python-pycparser) + ("python-pyparsing" ,python-pyparsing) + ("python-dateutil" ,python-dateutil) + ("python-pytz" ,python-pytz) + ("python-six" ,python-six) + ("python-urllib3" ,python-urllib3))) (propagated-inputs `(("python-cryptography" ,python-cryptography) ("python-furl" ,python-furl) ("python-peewee" ,python-peewee) @@ -121,7 +120,7 @@ (home-page "https://github.com/etesync/pyetesync") (synopsis "A python client library for EteSync.") (description - "This module provides a python API to interact with an EteSync server. + "This module provides a python API to interact with an EteSync server. It currently implements AddressBook and Calendar access, and supports two-way sync (both push and pull) to the server.") (license license:gpl3))) @@ -129,15 +128,16 @@ It currently implements AddressBook and Calendar access, and supports two-way sy (package (name "python-speaklater") (version "1.3") - (source (origin - (method url-fetch) - (uri (pypi-uri "speaklater" version)) - (sha256 - (base32 - "1ab5dbfzzgz6cnz4xlwx79gz83id4bhiw67k1cgqrlzfs0va7zjr")))) + (source + (origin + (method url-fetch) + (uri (pypi-uri "speaklater" version)) + (sha256 + (base32 "1ab5dbfzzgz6cnz4xlwx79gz83id4bhiw67k1cgqrlzfs0va7zjr")))) (build-system python-build-system) (home-page "http://github.com/mitsuhiko/speaklater") - (synopsis "implements a lazy string for python useful for use with gettext") + (synopsis + "implements a lazy string for python useful for use with gettext") (description "implements a lazy string for python useful for use with gettext") (license #f))) @@ -147,12 +147,12 @@ It currently implements AddressBook and Calendar access, and supports two-way sy (package (name "python-flask-babelex") (version "0.9.4") - (source (origin - (method url-fetch) - (uri (pypi-uri "Flask-BabelEx" version)) - (sha256 - (base32 - "09yfr8hlwvpgvq8kp1y7qbnnl0q28hi0348bv199ssiqx779r99r")))) + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-BabelEx" version)) + (sha256 + (base32 "09yfr8hlwvpgvq8kp1y7qbnnl0q28hi0348bv199ssiqx779r99r")))) (build-system python-build-system) (propagated-inputs (list python-babel python-flask python-jinja2 python-speaklater)) @@ -171,19 +171,16 @@ It currently implements AddressBook and Calendar access, and supports two-way sy (method url-fetch) (uri (pypi-uri "Flask-WTF" version)) (sha256 - (base32 - "1p7jzxa3xckg13z1v9mck576m977h4qfczs3ag12sc4iz22p25zz")))) + (base32 "1p7jzxa3xckg13z1v9mck576m977h4qfczs3ag12sc4iz22p25zz")))) (build-system python-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "pytest" "-vv")))))) - (propagated-inputs - (list python-flask python-itsdangerous python-wtforms python-flask-babelex)) - (native-inputs - (list python-pytest)) + '(#:phases (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest" "-vv")))))) + (propagated-inputs (list python-flask python-itsdangerous python-wtforms + python-flask-babelex)) + (native-inputs (list python-pytest)) (home-page "https://github.com/lepture/flask-wtf") (synopsis "Simple integration of Flask and WTForms") (description "Flask-WTF integrates Flask and WTForms, including CSRF, file @@ -195,25 +192,25 @@ upload, and reCAPTCHA.") (package (name "radicale") (version "3.0.3") - (source (origin - (method url-fetch) - (uri (pypi-uri "Radicale" version)) - (sha256 - (base32 - "08m2lg4z0gr5n8qj54sblld5pqwcqccx1whw2mi74zx4zanrb69x")))) + (source + (origin + (method url-fetch) + (uri (pypi-uri "Radicale" version)) + (sha256 + (base32 "08m2lg4z0gr5n8qj54sblld5pqwcqccx1whw2mi74zx4zanrb69x")))) (build-system python-build-system) (arguments - '(#:tests? #f)) ; The tests are not distributed in the PyPi release. - (native-inputs - `(("python-dateutil" ,python-dateutil) - ("python-defusedxml" ,python-defusedxml) - ("python-passlib" ,python-passlib) - ("python-vobject" ,python-vobject))) + '(#:tests? #f)) ;The tests are not distributed in the PyPi release. + (native-inputs `(("python-dateutil" ,python-dateutil) + ("python-defusedxml" ,python-defusedxml) + ("python-passlib" ,python-passlib) + ("python-vobject" ,python-vobject))) (propagated-inputs - ;; TODO: Add python-pam + ;; TODO: Add python-pam `(("python-requests" ,python-requests))) (synopsis "Basic CalDAV and CardDAV server") - (description "Radicale is a CalDAV and CardDAV server for UNIX-like + (description + "Radicale is a CalDAV and CardDAV server for UNIX-like platforms. Calendars and address books are available for both local and remote access, possibly limited through authentication policies. They can be viewed and edited by calendar and contact clients on mobile phones or computers. @@ -231,55 +228,53 @@ clients.") (source (origin (method url-fetch) - (uri (pypi-uri name version)) + (uri (pypi-uri name version)) (sha256 - (base32 - "086pjji6897y157idlnls87qi2f2bq0787lwqfdd4m97jf1yxqm4")))) + (base32 "086pjji6897y157idlnls87qi2f2bq0787lwqfdd4m97jf1yxqm4")))) (build-system python-build-system) (arguments - '(#:tests? #f)) ; The tests are not distributed in the PyPi release. - (propagated-inputs - `(("python-appdirs" ,python-appdirs) - ("python-asn1crypto" ,python-asn1crypto) - ("python-certifi" ,python-certifi) - ("python-cffi" ,python-cffi) - ("python-chardet" ,python-chardet) - ("python-click" ,python-click) - ("python-cryptography" ,python-cryptography) - ("python-defusedxml" ,python-defusedxml) - ("python-etebase" ,python-etebase) - ("python-etesync" ,python-etesync) - ("python-exitstatus" ,python-exitstatus-2.0.1) - ("python-flask" ,python-flask) - ("python-furl" ,python-furl) - ("python-idna" ,python-idna) - ("python-itsdangerous" ,python-itsdangerous) - ("python-flask-wtf" ,python-flask-wtf-0.15.1) - ("python-jinja2" ,python-jinja2) - ("python-markupsafe" ,python-markupsafe) - ("python-msgpack" ,python-msgpack) - ("python-orderedmultidict" ,python-orderedmultidict) - ("python-packaging" ,python-packaging) - ("python-passlib" ,python-passlib) - ("python-peewee" ,python-peewee) - ("python-py" ,python-py) - ("python-pyasn1" ,python-pyasn1) - ("python-pycparser" ,python-pycparser) - ("python-pyparsing" ,python-pyparsing) - ("python-dateutil" ,python-dateutil) - ("python-pysocks" ,python-pysocks) - ("python-pytz" ,python-pytz) - ("python-requests" ,python-requests) - ("python-six" ,python-six) - ("python-urllib3" ,python-urllib3) - ("python-vobject" ,python-vobject) - ("python-werkzeug" ,python-werkzeug) - ("python-wtforms" ,python-wtforms) - ("radicale" ,radicale-3.0.3))) + '(#:tests? #f)) ;The tests are not distributed in the PyPi release. + (propagated-inputs `(("python-appdirs" ,python-appdirs) + ("python-asn1crypto" ,python-asn1crypto) + ("python-certifi" ,python-certifi) + ("python-cffi" ,python-cffi) + ("python-chardet" ,python-chardet) + ("python-click" ,python-click) + ("python-cryptography" ,python-cryptography) + ("python-defusedxml" ,python-defusedxml) + ("python-etebase" ,python-etebase) + ("python-etesync" ,python-etesync) + ("python-exitstatus" ,python-exitstatus-2.0.1) + ("python-flask" ,python-flask) + ("python-furl" ,python-furl) + ("python-idna" ,python-idna) + ("python-itsdangerous" ,python-itsdangerous) + ("python-flask-wtf" ,python-flask-wtf-0.15.1) + ("python-jinja2" ,python-jinja2) + ("python-markupsafe" ,python-markupsafe) + ("python-msgpack" ,python-msgpack) + ("python-orderedmultidict" ,python-orderedmultidict) + ("python-packaging" ,python-packaging) + ("python-passlib" ,python-passlib) + ("python-peewee" ,python-peewee) + ("python-py" ,python-py) + ("python-pyasn1" ,python-pyasn1) + ("python-pycparser" ,python-pycparser) + ("python-pyparsing" ,python-pyparsing) + ("python-dateutil" ,python-dateutil) + ("python-pysocks" ,python-pysocks) + ("python-pytz" ,python-pytz) + ("python-requests" ,python-requests) + ("python-six" ,python-six) + ("python-urllib3" ,python-urllib3) + ("python-vobject" ,python-vobject) + ("python-werkzeug" ,python-werkzeug) + ("python-wtforms" ,python-wtforms) + ("radicale" ,radicale-3.0.3))) (home-page "https://github.com/etesync/etesync-dav") (synopsis "CalDAV and CardDAV adapter for EteSync") (description - "This package provides a local CalDAV and CardDAV server that acts as an EteSync compatibility layer (adapter). + "This package provides a local CalDAV and CardDAV server that acts as an EteSync compatibility layer (adapter). It's meant for letting desktop CalDAV and CardDAV clients such as Thunderbird, Outlook and Apple Contacts connect with EteSync.") (license license:gpl3))) |