[PATCH 00/12] gnu: synapse: Update to 1.67.0

  • Open
  • quality assurance status badge
Details
4 participants
  • Andrew Tropin
  • conses
  • Miguel Ángel Moreno
  • Miguel Ángel Moreno
Owner
unassigned
Submitted by
conses
Severity
normal
C
C
conses wrote on 22 Mar 2023 18:29
(address . guix-patches@gnu.org)
cover.1679505128.git.contact@conses.eu
Hi,

This patch series updates Synapse to the latest version where no Rust
tooling is needed, as per
packaging version 1.68.0 onward but it requires a ton of transitive Rust
library dependencies, as in the case of python-cryptography-next, and
there are a lot of version mismatches with existing ones. I propose to
update to a later version once a better way of dealing with Rust
dependencies is found. Moreover, build times on those versions are
significantly increased, taking well over an hour in my machine. All in
all, this makes it really difficult to troubleshoot any packaging errors
so I hope for an easier time in future versions.

Tests were also removed since they depend on libraries that are
considered optional (causing build times to be increased too), and
they currently fail because some of the ones that test Twisted
functionality require network access.

Apart from that, this basically updates a few of its dependencies, and
moves some of them to use python-cryptography-next.

I think more emphasis should be put on updating this package more
frequently (e.g. https://issues.guix.gnu.org/56373), since Matrix is a
widely used communication platform, and the fact that there hasn't been
an update for more than 2 years while Nix is on the latest version
doesn't look good for Guix and its adoption.

conses (12):
gnu: Add python-matrix-common.
gnu: python-twisted: Update to 22.10.0.
gnu: python-pyopenssl: Move to python-cryptography-next.
gnu: python-urllib3: Move to python-cryptography-next.
gnu: python-treq: Update to 20.9.0.
gnu: python-josepy: Move to python-cryptography-next.
gnu: python-secretstorage: Move to python-cryptography-next.
gnu: python-acme: Move to python-cryptography-next.
gnu: python-pysaml2: Move to python-cryptography-next.
gnu: python-incremental: Update to 21.3.0.
gnu: Add python-txredisapi.
gnu: synapse: Update to 1.67.0.

gnu/packages/matrix.scm | 22 ++++++--
gnu/packages/python-crypto.scm | 6 +--
gnu/packages/python-web.scm | 6 +--
gnu/packages/python-xyz.scm | 97 ++++++++++++++++++++++++++++------
gnu/packages/tls.scm | 2 +-
5 files changed, 106 insertions(+), 27 deletions(-)

--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:30
[PATCH 01/12] gnu: Add python-matrix-common.
(address . 62389@debbugs.gnu.org)
a4678e8fbfb152bcc66c3cc7abfc3c3561754d80.1679505128.git.contact@conses.eu
* gnu/packages/python-xyz.scm (python-matrix-common): New variable.
---
gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)

Toggle diff (60 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index abe4862121..e394341805 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7220,6 +7220,47 @@ (define-public python-matplotlib-venn
three-way Venn diagrams in @code{matplotlib}.")
(license license:expat)))
+(define-public python-matrix-common
+ (package
+ (name"python-matrix-common")
+ (version "1.2.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "matrix_common" version))
+ (sha256
+ (base32
+ "0lrqzb6s57fxp0kwffdqnkr2pj9aia459cv1b95b55dxlq1cz7d9"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ (setenv "SOURCE_DATE_EPOCH"
+ (number->string (* 10 366 24 60 60)))
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests")))))))
+ (native-inputs
+ (list
+ python-pypa-build
+ python-pytest
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://github.com/matrix-org/matrix-python-common")
+ (synopsis "Common code for Synapse, Sydent and Sygnal")
+ (description "This package provides common utilities for Synapse, Sydent
+and Sygnal.")
+ (license license:asl2.0)))
+
(define-public python-pysnptools
(package
(name "python-pysnptools")
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:30
[PATCH 02/12] gnu: python-twisted: Update to 22.10.0.
(address . 62389@debbugs.gnu.org)
317531d456f8a4dd96a69e69d7c09aed6878eb77.1679505128.git.contact@conses.eu
* gnu/packages/python-xyz.scm (python-twisted): Update to 22.10.0.
[arguments]: Disable tests and add phases.
[inputs]: Add python's tk output as a dependency.
[native-inputs]: Add Python dependencies.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)

Toggle diff (62 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e394341805..bba9c0126f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17337,30 +17337,37 @@ (define-public python-fastimport
(define-public python-twisted
(package
(name "python-twisted")
- (version "19.7.0")
+ (version "22.10.0")
(source (origin
(method url-fetch)
- (uri (pypi-uri "Twisted" version ".tar.bz2"))
+ (uri (pypi-uri "Twisted" version ".tar.gz"))
(sha256
(base32
- "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
+ "0cad5n7h8nd0nyl865sn8l4ja0mkwbx9n41cnkklcpsgm50bvb1j"))))
(build-system python-build-system)
(arguments
- '(#:tests? #f ; FIXME: some tests fail
- #:phases
- (modify-phases %standard-phases
- ;; Remove scripts, because they depend on [conch]
- (add-after 'unpack 'remove-entrypoint
- (lambda _
- (substitute* "src/twisted/python/_setup.py"
- (("\".+ = twisted\\.conch\\.scripts\\..+\",") "")))))))
+ (list
+ #:tests? #f ; FIXME: some tests fail
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'adjust-for-older-attrs
+ (lambda _
+ (substitute* (find-files "." "\\.py$")
+ (("from attrs\\b")
+ "from attr")))))))
+ (inputs (list (list python "tk")))
+ (native-inputs (list python-wheel))
(propagated-inputs
(list python-zope-interface
python-pyhamcrest
python-incremental
python-hyperlink
python-constantly
- python-automat))
+ python-automat
+ python-typing-extensions
+ python-bcrypt
+ python-cryptography-next
+ python-pyasn1))
(home-page "https://twistedmatrix.com/")
(synopsis "Asynchronous networking framework written in Python")
(description
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:31
[PATCH 03/12] gnu: python-pyopenssl: Move to python-cryptography-next.
(address . 62389@debbugs.gnu.org)
337620cddb4b638c1be945cfaf861d114056a6f1.1679505128.git.contact@conses.eu
* gnu/packages/python-crypto.scm (python-openssl):
[propagated-inputs]: Move to python-cryptography-next.
---
gnu/packages/python-crypto.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (21 lines)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index c9071c4cf6..6ce1a0a11c 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -740,7 +740,7 @@ (define-public python-pyopenssl
;; https://github.com/pyca/pyopenssl/issues/974
"and not test_verify_with_time"))))))))
(propagated-inputs
- (list python-cryptography python-six))
+ (list python-cryptography-next python-six))
(inputs
(list openssl))
(native-inputs
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:31
[PATCH 04/12] gnu: python-urllib3: Move to python-cryptography-next.
(address . 62389@debbugs.gnu.org)
67c2d7aa92c00fc8c52a14e0da5baa4ff4e1d6ec.1679505128.git.contact@conses.eu
* gnu/packages/python-web.scm (python-urllib3):
[propagated-inputs]: Move to python-cryptography-next.
---
gnu/packages/python-web.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (21 lines)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8a73c929a1..e893f1bd5f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3310,7 +3310,7 @@ (define-public python-urllib3
(propagated-inputs
(list ;; These 5 inputs are used to build urrlib3[secure]
python-certifi
- python-cryptography
+ python-cryptography-next
python-idna
python-pyopenssl
python-pysocks))
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:31
[PATCH 05/12] gnu: python-treq: Update to 20.9.0.
(address . 62389@debbugs.gnu.org)
a487c2f007499845f6808869e2ab877053852895.1679505128.git.contact@conses.eu
* gnu/packages/python-web.scm (python-treq): Update to 20.9.0.
---
gnu/packages/python-web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (29 lines)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e893f1bd5f..8155a6d898 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4976,14 +4976,14 @@ (define-public python-hyperlink
(define-public python-treq
(package
(name "python-treq")
- (version "18.6.0")
+ (version "20.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "treq" version))
(sha256
(base32
- "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
+ "18kdk11d84lyxj6dz183nblc6c6r4rj1hk0lpsyiykzgbakjrkc3"))))
(build-system python-build-system)
(propagated-inputs
(list python-attrs
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:31
[PATCH 06/12] gnu: python-josepy: Move to python-cryptography-next.
(address . 62389@debbugs.gnu.org)
d3162a48678c335a7fef20d6e121a6192432f0aa.1679505128.git.contact@conses.eu
* gnu/packages/python-crypto.scm (python-josepy):
[propagated-inputs]: Move to python-cryptography-next.
---
gnu/packages/python-crypto.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (21 lines)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 6ce1a0a11c..8f8eb23954 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -976,7 +976,7 @@ (define-public python-josepy
;; TODO: some test dependencies are missing (see pyproject.toml).
'(#:tests? #f))
(propagated-inputs
- (list python-cryptography python-pyopenssl))
+ (list python-cryptography-next python-pyopenssl))
(home-page "https://github.com/certbot/josepy")
(synopsis "JOSE protocol implementation in Python")
(description "This package provides a Python implementation of the JOSE
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:31
[PATCH 07/12] gnu: python-secretstorage: Move to python-cryptography-next.
(address . 62389@debbugs.gnu.org)
cb503b7b5f9030b419d466d80a92b049188717a8.1679505128.git.contact@conses.eu
* gnu/packages/python-crypto.scm (python-secretstorage):
[propagated-inputs]: Move to python-cryptography-next.
---
gnu/packages/python-crypto.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (21 lines)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 8f8eb23954..2e82343b7b 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1488,7 +1488,7 @@ (define-public python-secretstorage
(arguments
'(#:tests? #f)) ; Tests require a running dbus service.
(propagated-inputs
- (list python-cryptography python-jeepney))
+ (list python-cryptography-next python-jeepney))
(home-page "https://github.com/mitya57/secretstorage")
(synopsis "Python bindings to FreeDesktop.org Secret Service API")
(description
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:32
[PATCH 08/12] gnu: python-acme: Move to python-cryptography-next.
(address . 62389@debbugs.gnu.org)
884e3af63d1302513135723679a2d1e1c5efc701.1679505128.git.contact@conses.eu
* gnu/packages/tls.scm (python-acme):
[propagated-inputs]: Move to python-cryptography-next.
---
gnu/packages/tls.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (21 lines)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 5a44fa89dc..5c9a8faca6 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -810,7 +810,7 @@ (define-public python-acme
python-pytz
python-pyrfc3339
python-pyasn1
- python-cryptography
+ python-cryptography-next
python-pyopenssl))
(home-page "https://github.com/certbot/certbot")
(synopsis "ACME protocol implementation in Python")
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:32
[PATCH 09/12] gnu: python-pysaml2: Move to python-cryptography-next.
(address . 62389@debbugs.gnu.org)
3528feffbaff8a0ef95570dadc3daef6b7cab748.1679505128.git.contact@conses.eu
* gnu/packages/python-xyz.scm (python-pysaml2):
[propagated-inputs]: Move to python-cryptography-next.
---
gnu/packages/python-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (21 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bba9c0126f..f4f31c421a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27062,7 +27062,7 @@ (define-public python-pysaml2
"1xk2x0slz1f8cqv7vn77qx99xfd1mshhswiwrljk9m72w2m9iivd"))))
(build-system python-build-system)
(propagated-inputs
- (list python-cryptography
+ (list python-cryptography-next
python-dateutil
python-defusedxml
python-importlib-resources
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:32
[PATCH 10/12] gnu: python-incremental: Update to 21.3.0.
(address . 62389@debbugs.gnu.org)
257760e550a01382606d471c6be06e296671762b.1679505128.git.contact@conses.eu
* gnu/packages/python-xyz.scm (python-incremental): Update to 21.3.0.
---
gnu/packages/python-xyz.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (29 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f4f31c421a..7f15c6340f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19923,14 +19923,14 @@ (define-public python-pypeg2
(define-public python-incremental
(package
(name "python-incremental")
- (version "17.5.0")
+ (version "21.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "incremental" version))
(sha256
(base32
- "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
+ "0mvgbmsnv1c8ziydw41jjkivc0zcqyzli7frcpvbkxj8zxddxx82"))))
(build-system python-build-system)
(home-page "https://github.com/hawkowl/incremental")
(synopsis "Library for versioning Python projects")
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:32
[PATCH 11/12] gnu: Add python-txredisapi.
(address . 62389@debbugs.gnu.org)
76b2696950df989cc65f1095d3d6b40b5a8db9bd.1679505128.git.contact@conses.eu
* gnu/packages/python-xyz.scm (python-txredisapi): New variable.
---
gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7f15c6340f..bb5e5fcf50 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24845,6 +24845,25 @@ (define-public python-txaio
@code{asyncio} module and @code{Twisted}.")
(license license:expat)))
+(define-public python-txredisapi
+ (package
+ (name "python-txredisapi")
+ (version "1.4.9")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "txredisapi" version))
+ (sha256
+ (base32
+ "0na5x3b53ni98h1cyakac36mqzgyldvfn6a7z270nkays1i70q69"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-pyopenssl python-six python-twisted))
+ (home-page "http://github.com/IlyaSkriblovsky/txredisapi")
+ (synopsis "Non-blocking redis client for Python")
+ (description "Non-blocking client driver for the redis database, written
+in Python. It uses Twisted for the asynchronous communication with
+redis.")
+ (license license:asl2.0)))
+
(define-public python-toolshed
(package
(name "python-toolshed")
--
2.39.1



--
Best regards,
conses
C
C
conses wrote on 22 Mar 2023 18:33
[PATCH 12/12] gnu: synapse: Update to 1.67.0.
(address . 62389@debbugs.gnu.org)
b9cac19754c4a6337030ef006b0c8dc0e7d05f21.1679505128.git.contact@conses.eu
* gnu/packages/matrix.scm (synapse): Update to 1.67.0.
[propagated-inputs]: Add Python dependencies.
[arguments]: Disable tests.
---
gnu/packages/matrix.scm | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)

Toggle diff (71 lines)
diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index 2ed7a9a782..519f5009d2 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -33,6 +33,7 @@ (define-module (gnu packages matrix)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages xml)
#:use-module (guix build-system python)
#:use-module (guix download)
@@ -93,14 +94,18 @@ (define-public python-matrix-synapse-ldap3
(define-public synapse
(package
(name "synapse")
- (version "1.29.0")
+ (version "1.67.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "matrix-synapse" version))
(sha256
(base32
- "0if2yhpz8psg0661401mvxznldbfhk2j9rhbs25jdaqm9jsv6907"))))
+ "05mljp6jjz7ylmmjvlvxm3w9h3ynrjq5b3b3zssmr48lbjxrb8pk"))))
(build-system python-build-system)
+ (arguments
+ (list
+ ;; Tests require network access
+ #:tests? #f))
;; TODO Run tests with ‘PYTHONPATH=. trial3 tests’.
(propagated-inputs
(list python-simplejson ; not attested but required
@@ -133,11 +138,18 @@ (define-public synapse
python-jinja2
python-bleach
python-typing-extensions
- ;; conditional requirements (synapse/python_dependencies.py)
- ;;("python-hiredis" ,python-hiredis)
+ python-matrix-common
+ python-pyperf
+ python-redis
+ python-ijson
+ python-cryptography-next
+ python-pydantic
+ ;; conditional requirements (pyproject.toml)
python-matrix-synapse-ldap3
python-psycopg2
python-jinja2
+ python-txredisapi
+ python-hiredis
python-txacme
python-pysaml2
python-lxml
@@ -146,7 +158,7 @@ (define-public synapse
;; all are monitoring aids and not essential.
python-pyjwt))
(native-inputs
- (list python-mock python-parameterized))
+ (list python-mock python-parameterized openssl))
(home-page "https://github.com/matrix-org/synapse")
(synopsis "Matrix reference homeserver")
(description "Synapse is a reference \"homeserver\" implementation of
--
2.39.1



--
Best regards,
conses
M
M
Miguel Ángel Moreno wrote on 7 Jun 2023 19:29
[PATCH v2 1/6] gnu: Add python-matrix-common.
(address . 62389@debbugs.gnu.org)(address . me@mianmoreno.com)
9ddbe6448696df3082e02a2b7e3dbe5ae57bdd81.1686158920.git.me@mianmoreno.com
* gnu/packages/python-xyz.scm (python-matrix-common): New variable.
---
gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)

Toggle diff (59 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 47cea7be6f..29166b5887 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7793,6 +7793,47 @@ (define-public python-matplotlib-venn
three-way Venn diagrams in @code{matplotlib}.")
(license license:expat)))
+(define-public python-matrix-common
+ (package
+ (name"python-matrix-common")
+ (version "1.2.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "matrix_common" version))
+ (sha256
+ (base32
+ "0lrqzb6s57fxp0kwffdqnkr2pj9aia459cv1b95b55dxlq1cz7d9"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ (setenv "SOURCE_DATE_EPOCH"
+ (number->string (* 10 366 24 60 60)))
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests")))))))
+ (native-inputs
+ (list
+ python-pypa-build
+ python-pytest
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://github.com/matrix-org/matrix-python-common")
+ (synopsis "Common code for Synapse, Sydent and Sygnal")
+ (description "This package provides common utilities for Synapse, Sydent
+and Sygnal.")
+ (license license:asl2.0)))
+
(define-public python-pysnptools
(package
(name "python-pysnptools")
--
2.40.1


--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 7 Jun 2023 19:29
[PATCH v2 2/6] gnu: python-twisted: Update to 22.10.0.
(address . 62389@debbugs.gnu.org)(address . me@mianmoreno.com)
5eb3a1e70596428bfda2097192b1b48b357dac88.1686158920.git.me@mianmoreno.com
* gnu/packages/python-xyz.scm (python-twisted): Update to 22.10.0.
[arguments]: Disable tests and add phases.
[inputs]: Add python's tk output as a dependency.
[native-inputs]: Add Python dependencies.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)

Toggle diff (61 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 29166b5887..e08a30e136 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18062,30 +18062,37 @@ (define-public python-fastimport
(define-public python-twisted
(package
(name "python-twisted")
- (version "19.7.0")
+ (version "22.10.0")
(source (origin
(method url-fetch)
- (uri (pypi-uri "Twisted" version ".tar.bz2"))
+ (uri (pypi-uri "Twisted" version ".tar.gz"))
(sha256
(base32
- "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
+ "0cad5n7h8nd0nyl865sn8l4ja0mkwbx9n41cnkklcpsgm50bvb1j"))))
(build-system python-build-system)
(arguments
- '(#:tests? #f ; FIXME: some tests fail
- #:phases
- (modify-phases %standard-phases
- ;; Remove scripts, because they depend on [conch]
- (add-after 'unpack 'remove-entrypoint
- (lambda _
- (substitute* "src/twisted/python/_setup.py"
- (("\".+ = twisted\\.conch\\.scripts\\..+\",") "")))))))
+ (list
+ #:tests? #f ; FIXME: some tests fail
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'adjust-for-older-attrs
+ (lambda _
+ (substitute* (find-files "." "\\.py$")
+ (("from attrs\\b")
+ "from attr")))))))
+ (inputs (list (list python "tk")))
+ (native-inputs (list python-wheel))
(propagated-inputs
(list python-zope-interface
python-pyhamcrest
python-incremental
python-hyperlink
python-constantly
- python-automat))
+ python-automat
+ python-typing-extensions
+ python-bcrypt
+ python-cryptography
+ python-pyasn1))
(home-page "https://twistedmatrix.com/")
(synopsis "Asynchronous networking framework written in Python")
(description
--
2.40.1


--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 7 Jun 2023 19:31
[PATCH v2 3/6] gnu: python-treq: Update to 20.9.0.
(address . 62389@debbugs.gnu.org)(address . me@mianmoreno.com)
a1e8bbb001396c08771ea41e2b90b258e2c034ed.1686158921.git.me@mianmoreno.com
* gnu/packages/python-web.scm (python-treq): Update to 20.9.0.
---
gnu/packages/python-web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (27 lines)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index dbd6e98730..837fb5b6a0 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5134,14 +5134,14 @@ (define-public python-hyperlink
(define-public python-treq
(package
(name "python-treq")
- (version "18.6.0")
+ (version "20.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "treq" version))
(sha256
(base32
- "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
+ "18kdk11d84lyxj6dz183nblc6c6r4rj1hk0lpsyiykzgbakjrkc3"))))
(build-system python-build-system)
(propagated-inputs
(list python-attrs
--
2.40.1

--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 7 Jun 2023 19:31
[PATCH v2 4/6] gnu: python-incremental: Update to 21.3.0.
(address . 62389@debbugs.gnu.org)(address . me@mianmoreno.com)
d55e3b26c6d7b4c0906736ece966c45f504b2cea.1686158921.git.me@mianmoreno.com
* gnu/packages/python-xyz.scm (python-incremental): Update to 21.3.0.
---
gnu/packages/python-xyz.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (27 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e08a30e136..3061e202b0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20712,14 +20712,14 @@ (define-public python-pypeg2
(define-public python-incremental
(package
(name "python-incremental")
- (version "17.5.0")
+ (version "21.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "incremental" version))
(sha256
(base32
- "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
+ "0mvgbmsnv1c8ziydw41jjkivc0zcqyzli7frcpvbkxj8zxddxx82"))))
(build-system python-build-system)
(home-page "https://github.com/hawkowl/incremental")
(synopsis "Library for versioning Python projects")
--
2.40.1

--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 7 Jun 2023 19:32
[PATCH v2 5/6] gnu: Add python-txredisapi.
(address . 62389@debbugs.gnu.org)(address . me@mianmoreno.com)
f5528dceea972b2ea6955ac2eee4a9f91ce2f642.1686158921.git.me@mianmoreno.com
* gnu/packages/python-xyz.scm (python-txredisapi): New variable.
---
gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3061e202b0..32ef8b25e9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25668,6 +25668,25 @@ (define-public python-txaio
@code{asyncio} module and @code{Twisted}.")
(license license:expat)))
+(define-public python-txredisapi
+ (package
+ (name "python-txredisapi")
+ (version "1.4.9")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "txredisapi" version))
+ (sha256
+ (base32
+ "0na5x3b53ni98h1cyakac36mqzgyldvfn6a7z270nkays1i70q69"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-pyopenssl python-six python-twisted))
+ (home-page "http://github.com/IlyaSkriblovsky/txredisapi")
+ (synopsis "Non-blocking redis client for Python")
+ (description "Non-blocking client driver for the redis database, written
+in Python. It uses Twisted for the asynchronous communication with
+redis.")
+ (license license:asl2.0)))
+
(define-public python-toolshed
(package
(name "python-toolshed")
--
2.40.1


--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 7 Jun 2023 19:33
[PATCH v2 6/6] gnu: synapse: Update to 1.67.0.
(address . 62389@debbugs.gnu.org)(address . me@mianmoreno.com)
916053d6d7b02004c2447edf99210a2b5dc63b6d.1686158921.git.me@mianmoreno.com
* gnu/packages/matrix.scm (synapse): Update to 1.67.0.
[propagated-inputs]: Add Python dependencies.
[arguments]: Disable tests.
---
gnu/packages/matrix.scm | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)

Toggle diff (69 lines)
diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index f356674ed9..f67591f934 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -33,6 +33,7 @@ (define-module (gnu packages matrix)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages xml)
#:use-module (guix build-system python)
#:use-module (guix download)
@@ -93,14 +94,18 @@ (define-public python-matrix-synapse-ldap3
(define-public synapse
(package
(name "synapse")
- (version "1.29.0")
+ (version "1.67.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "matrix-synapse" version))
(sha256
(base32
- "0if2yhpz8psg0661401mvxznldbfhk2j9rhbs25jdaqm9jsv6907"))))
+ "05mljp6jjz7ylmmjvlvxm3w9h3ynrjq5b3b3zssmr48lbjxrb8pk"))))
(build-system python-build-system)
+ (arguments
+ (list
+ ;; Tests require network access
+ #:tests? #f))
;; TODO Run tests with ‘PYTHONPATH=. trial3 tests’.
(propagated-inputs
(list python-simplejson ; not attested but required
@@ -133,11 +138,18 @@ (define-public synapse
python-jinja2
python-bleach
python-typing-extensions
- ;; conditional requirements (synapse/python_dependencies.py)
- ;;("python-hiredis" ,python-hiredis)
+ python-matrix-common
+ python-pyperf
+ python-redis
+ python-cryptography
+ python-ijson
+ python-pydantic
+ ;; conditional requirements (pyproject.toml)
python-matrix-synapse-ldap3
python-psycopg2
python-jinja2
+ python-txredisapi
+ python-hiredis
python-txacme
python-pysaml2
python-lxml
@@ -146,7 +158,7 @@ (define-public synapse
;; all are monitoring aids and not essential.
python-pyjwt))
(native-inputs
- (list python-mock python-parameterized))
+ (list python-mock python-parameterized openssl))
(home-page "https://github.com/matrix-org/synapse")
(synopsis "Matrix reference homeserver")
(description "Synapse is a reference \"homeserver\" implementation of
--
2.40.1

--
Best regards,
Miguel Ángel Moreno
A
A
Andrew Tropin wrote on 31 Aug 2023 07:23
Re: [bug#62389] [PATCH v2 2/6] gnu: python-twisted: Update to 22.10.0.
87r0njhjjz.fsf@trop.in
On 2023-06-07 19:29, Miguel Ángel Moreno wrote:

Toggle quote (65 lines)
> * gnu/packages/python-xyz.scm (python-twisted): Update to 22.10.0.
> [arguments]: Disable tests and add phases.
> [inputs]: Add python's tk output as a dependency.
> [native-inputs]: Add Python dependencies.
> ---
> gnu/packages/python-xyz.scm | 31 +++++++++++++++++++------------
> 1 file changed, 19 insertions(+), 12 deletions(-)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 29166b5887..e08a30e136 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -18062,30 +18062,37 @@ (define-public python-fastimport
> (define-public python-twisted
> (package
> (name "python-twisted")
> - (version "19.7.0")
> + (version "22.10.0")
> (source (origin
> (method url-fetch)
> - (uri (pypi-uri "Twisted" version ".tar.bz2"))
> + (uri (pypi-uri "Twisted" version ".tar.gz"))
> (sha256
> (base32
> - "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
> + "0cad5n7h8nd0nyl865sn8l4ja0mkwbx9n41cnkklcpsgm50bvb1j"))))
> (build-system python-build-system)
> (arguments
> - '(#:tests? #f ; FIXME: some tests fail
> - #:phases
> - (modify-phases %standard-phases
> - ;; Remove scripts, because they depend on [conch]
> - (add-after 'unpack 'remove-entrypoint
> - (lambda _
> - (substitute* "src/twisted/python/_setup.py"
> - (("\".+ = twisted\\.conch\\.scripts\\..+\",") "")))))))
> + (list
> + #:tests? #f ; FIXME: some tests fail
> + #:phases
> + #~(modify-phases %standard-phases
> + (add-after 'unpack 'adjust-for-older-attrs
> + (lambda _
> + (substitute* (find-files "." "\\.py$")
> + (("from attrs\\b")
> + "from attr")))))))
> + (inputs (list (list python "tk")))
> + (native-inputs (list python-wheel))
> (propagated-inputs
> (list python-zope-interface
> python-pyhamcrest
> python-incremental
> python-hyperlink
> python-constantly
> - python-automat))
> + python-automat
> + python-typing-extensions
> + python-bcrypt
> + python-cryptography
> + python-pyasn1))
> (home-page "https://twistedmatrix.com/")
> (synopsis "Asynchronous networking framework written in Python")
> (description
> --
> 2.40.1

The patch series LGTM, but python-twisted requires to rebuild more than
300 packages, so it probably should be pushed to a separate branch first
to ensure everything builds on a CI. CCed python team, Ricardo and
Tobias.

--
Best regards,
Andrew Tropin
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmTwI8AACgkQIgjSCVjB
3rAvoRAAhGjScfxYh4dFZAm4uPq90tvRX0BA/o0LHuqsDTtpkGc3b5j65lvrdobW
IUHwR+jDLeRHqfCZ0jBmEsiWRpWLTNze0hya8KthTVHSEdmUjwURIR589U9uQtGD
YjikZQczp+KOFGinFh147SQy0RayfFJWqUbF3luF0NOhJv6jRudHOoxg25V8X0yb
4SioqwwOufUPQ204FanFBMC37Ce75W/Dogua8IDyDsBJmahwys1yIp0O29LFY9GI
QSf/pgwZHULUr5BIAtHd8XrgrKZUfGYJjIg0hmhtmtZsMl1Qn5QELBimnYA9t2J4
Qo5yqvz0t/5tEgIV4A0+PZUCrlYmpjBwLstxRW6LkT98yYoVTp7DgFxlB6v0U330
FvLeNPPIE0KkZOBoyJogm+H6XA407Wu5qeNTQ2LL15o6gZkD40ZEfDKFeZgsx6oo
ubp7eusLpXYOgl9cNUL7idqVXR5qcyqb7Ta7gODnmvoldVfiik6S/FkRhgRYGKtG
TyleGruEMvzd9uNtLlQWiEasnDdQ050JeqnsAXM7RuV8Vb2vTwUtDwLa6Xi9Auy+
al59qowdEaxw9UuDZD+pwgHfySyN+uAfKd/6JUvN3L6XRY/R39FxW2rUoZx4T1b8
QKCv36EVX5jzaABTzRjj4MdWVta4FrMPJ8ypU2SvuSkhohPOWLQ=
=9dBb
-----END PGP SIGNATURE-----

M
M
Miguel Ángel Moreno wrote on 11 Feb 20:53 +0100
[PATCH v3 1/5] gnu: Add python-matrix-common.
(address . 62389@debbugs.gnu.org)(address . mail@migalmoreno.com)
3e9dc1f25960f69a4fc58a484f5c52c1ffe28e06.1707681223.git.mail@migalmoreno.com
* gnu/packages/python-xyz.scm (python-matrix-common): New variable.
Change-Id: I16f03bef7c4cc6c11d3eb33b33b517bbf0441c36
---
gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Toggle diff (62 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c68b17b0ab..8aaf2d63d3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8902,6 +8902,47 @@ (define-public python-perfplot
the results.")
(license license:gpl3+)))
+(define-public python-matrix-common
+ (package
+ (name"python-matrix-common")
+ (version "1.2.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "matrix_common" version))
+ (sha256
+ (base32
+ "0lrqzb6s57fxp0kwffdqnkr2pj9aia459cv1b95b55dxlq1cz7d9"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ (setenv "SOURCE_DATE_EPOCH"
+ (number->string (* 10 366 24 60 60)))
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests")))))))
+ (native-inputs
+ (list
+ python-pypa-build
+ python-pytest
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://github.com/matrix-org/matrix-python-common")
+ (synopsis "Common code for Synapse, Sydent and Sygnal")
+ (description "This package provides common utilities for Synapse, Sydent
+and Sygnal.")
+ (license license:asl2.0)))
+
(define-public python-pysnptools
(package
(name "python-pysnptools")
base-commit: 6f78803b01d416ab421ba860751b764b9e4f33db
--
2.41.0
--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 11 Feb 20:54 +0100
[PATCH v3 2/5] gnu: python-twisted: Update to 22.10.0.
(address . 62389@debbugs.gnu.org)(address . mail@migalmoreno.com)
3fdae0d0e9b6e3ba4a69d1d2278214b32674f8a7.1707681223.git.mail@migalmoreno.com
* gnu/packages/python-xyz.scm (python-twisted): Update to 22.10.0.
[arguments]: Disable tests and add phases.
[inputs]: Add python's tk output as a dependency.
[native-inputs]: Add Python dependencies.
Change-Id: I841fbe5923875f2d4bb760619b9ac3710ed06bad
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
Toggle diff (62 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8aaf2d63d3..8bce7ea8aa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19874,30 +19874,37 @@ (define-public python-fastimport
(define-public python-twisted
(package
(name "python-twisted")
- (version "19.7.0")
+ (version "22.10.0")
(source (origin
(method url-fetch)
- (uri (pypi-uri "Twisted" version ".tar.bz2"))
+ (uri (pypi-uri "Twisted" version ".tar.gz"))
(sha256
(base32
- "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
+ "0cad5n7h8nd0nyl865sn8l4ja0mkwbx9n41cnkklcpsgm50bvb1j"))))
(build-system python-build-system)
(arguments
- '(#:tests? #f ; FIXME: some tests fail
- #:phases
- (modify-phases %standard-phases
- ;; Remove scripts, because they depend on [conch]
- (add-after 'unpack 'remove-entrypoint
- (lambda _
- (substitute* "src/twisted/python/_setup.py"
- (("\".+ = twisted\\.conch\\.scripts\\..+\",") "")))))))
+ (list
+ #:tests? #f ; FIXME: some tests fail
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'adjust-for-older-attrs
+ (lambda _
+ (substitute* (find-files "." "\\.py$")
+ (("from attrs\\b")
+ "from attr")))))))
+ (inputs (list (list python "tk")))
+ (native-inputs (list python-wheel))
(propagated-inputs
(list python-zope-interface
python-pyhamcrest
python-incremental
python-hyperlink
python-constantly
- python-automat))
+ python-automat
+ python-typing-extensions
+ python-bcrypt
+ python-cryptography
+ python-pyasn1))
(home-page "https://twistedmatrix.com/")
(synopsis "Asynchronous networking framework written in Python")
(description
--
2.41.0
--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 11 Feb 20:54 +0100
[PATCH v3 3/5] gnu: python-treq: Update to 20.9.0.
(address . 62389@debbugs.gnu.org)(address . mail@migalmoreno.com)
ee3a94da56eb1ee7e0bfa0030952801a32ca31f1.1707681223.git.mail@migalmoreno.com
* gnu/packages/python-web.scm (python-treq): Update to 20.9.0.
Change-Id: I4c2a64affa0aa14bf46da1bbe0b1186c18f7424d
---
gnu/packages/python-web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Toggle diff (29 lines)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 0c0cc46e5f..fc8a93189f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5474,14 +5474,14 @@ (define-public python-hyperlink
(define-public python-treq
(package
(name "python-treq")
- (version "18.6.0")
+ (version "20.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "treq" version))
(sha256
(base32
- "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
+ "18kdk11d84lyxj6dz183nblc6c6r4rj1hk0lpsyiykzgbakjrkc3"))))
(build-system python-build-system)
(propagated-inputs
(list python-attrs
--
2.41.0
--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 11 Feb 20:55 +0100
[PATCH v3 4/5] gnu: Add python-txredisapi.
(address . 62389@debbugs.gnu.org)(address . mail@migalmoreno.com)
4882683b4a876fede2a33912c9012b94f7f56bf4.1707681223.git.mail@migalmoreno.com
* gnu/packages/python-xyz.scm (python-txredisapi): New variable.
Change-Id: Iab480fcfd28fd607d5d0c614d89128ee7128aa98
---
gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
Toggle diff (38 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8bce7ea8aa..8ee8f99b61 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27909,6 +27909,25 @@ (define-public python-txaio
@code{asyncio} module and @code{Twisted}.")
(license license:expat)))
+(define-public python-txredisapi
+ (package
+ (name "python-txredisapi")
+ (version "1.4.9")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "txredisapi" version))
+ (sha256
+ (base32
+ "0na5x3b53ni98h1cyakac36mqzgyldvfn6a7z270nkays1i70q69"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-pyopenssl python-six python-twisted))
+ (home-page "http://github.com/IlyaSkriblovsky/txredisapi")
+ (synopsis "Non-blocking redis client for Python")
+ (description "Non-blocking client driver for the redis database, written
+in Python. It uses Twisted for the asynchronous communication with
+redis.")
+ (license license:asl2.0)))
+
(define-public python-toolshed
(package
(name "python-toolshed")
--
2.41.0
--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 11 Feb 20:55 +0100
[PATCH v3 5/5] gnu: synapse: Update to 1.67.0.
(address . 62389@debbugs.gnu.org)(address . mail@migalmoreno.com)
d05581a7a2ec41accf4579604a1c818ad8dd2281.1707681223.git.mail@migalmoreno.com
* gnu/packages/matrix.scm (synapse): Update to 1.67.0.
[propagated-inputs]: Add Python dependencies.
[arguments]: Disable tests.
Change-Id: I01bc5efe8d81e028fa0cca1037673cc3e9932adb
---
gnu/packages/matrix.scm | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
Toggle diff (71 lines)
diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index 32ae62fcb4..700ac60979 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -33,6 +33,7 @@ (define-module (gnu packages matrix)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages xml)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
@@ -94,14 +95,18 @@ (define-public python-matrix-synapse-ldap3
(define-public synapse
(package
(name "synapse")
- (version "1.29.0")
+ (version "1.67.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "matrix-synapse" version))
(sha256
(base32
- "0if2yhpz8psg0661401mvxznldbfhk2j9rhbs25jdaqm9jsv6907"))))
+ "05mljp6jjz7ylmmjvlvxm3w9h3ynrjq5b3b3zssmr48lbjxrb8pk"))))
(build-system python-build-system)
+ (arguments
+ (list
+ ;; Tests require network access
+ #:tests? #f))
;; TODO Run tests with ‘PYTHONPATH=. trial3 tests’.
(propagated-inputs
(list python-simplejson ; not attested but required
@@ -134,11 +139,18 @@ (define-public synapse
python-jinja2
python-bleach
python-typing-extensions
- ;; conditional requirements (synapse/python_dependencies.py)
- ;;("python-hiredis" ,python-hiredis)
+ python-matrix-common
+ python-pyperf
+ python-redis
+ python-cryptography
+ python-ijson
+ python-pydantic
+ ;; conditional requirements (pyproject.toml)
python-matrix-synapse-ldap3
python-psycopg2
python-jinja2
+ python-txredisapi
+ python-hiredis
python-txacme
python-pysaml2
python-lxml
@@ -147,7 +159,7 @@ (define-public synapse
;; all are monitoring aids and not essential.
python-pyjwt))
(native-inputs
- (list python-mock python-parameterized))
+ (list python-mock python-parameterized openssl))
(home-page "https://github.com/matrix-org/synapse")
(synopsis "Matrix reference homeserver")
(description "Synapse is a reference \"homeserver\" implementation of
--
2.41.0
--
Best regards,
Miguel Ángel Moreno
M
M
Miguel Ángel Moreno wrote on 11 Feb 20:52 +0100
[PATCH v3 1/5] gnu: Add python-matrix-common.
(address . 62389@debbugs.gnu.org)(address . mail@migalmoreno.com)
3e9dc1f25960f69a4fc58a484f5c52c1ffe28e06.1707681098.git.mail@migalmoreno.com
* gnu/packages/python-xyz.scm (python-matrix-common): New variable.
Change-Id: I16f03bef7c4cc6c11d3eb33b33b517bbf0441c36
---
gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Toggle diff (62 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c68b17b0ab..8aaf2d63d3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8902,6 +8902,47 @@ (define-public python-perfplot
the results.")
(license license:gpl3+)))
+(define-public python-matrix-common
+ (package
+ (name"python-matrix-common")
+ (version "1.2.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "matrix_common" version))
+ (sha256
+ (base32
+ "0lrqzb6s57fxp0kwffdqnkr2pj9aia459cv1b95b55dxlq1cz7d9"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ (setenv "SOURCE_DATE_EPOCH"
+ (number->string (* 10 366 24 60 60)))
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests")))))))
+ (native-inputs
+ (list
+ python-pypa-build
+ python-pytest
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://github.com/matrix-org/matrix-python-common")
+ (synopsis "Common code for Synapse, Sydent and Sygnal")
+ (description "This package provides common utilities for Synapse, Sydent
+and Sygnal.")
+ (license license:asl2.0)))
+
(define-public python-pysnptools
(package
(name "python-pysnptools")
base-commit: 6f78803b01d416ab421ba860751b764b9e4f33db
--
2.41.0
--
Best regards,
Miguel Ángel Moreno
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 62389@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 62389
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch