From e6b4c19b3f9d9b2b4516aafcb732a49432f646f3 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 1 Oct 2025 00:40:00 +0200 Subject: [PATCH] gnu: python-matrix-synapse-ldap3: Switch to pyproject. * gnu/packages/matrix.scm (python-matrix-synapse-ldap3): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Improve style. [native-inputs]: Add python-setuptools. Change-Id: I134953d039037e346533cb7c50c2497a564dabf1 Signed-off-by: Sharlatan Hellseher --- gnu/packages/matrix.scm | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm index 7a2a6f8cd643511b973b7288977522692abfb1e4..d3244881a426ac72d22ddb03242a2132460b8e02 100644 --- a/gnu/packages/matrix.scm +++ b/gnu/packages/matrix.scm @@ -152,18 +152,22 @@ on @url{https://github.com/tulir/whatsmeow, whatsmeow}.") (version "0.1.4") (source (origin - (method url-fetch) - (uri (pypi-uri "matrix-synapse-ldap3" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/matrix-org/matrix-synapse-ldap3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "01bms89sl16nyh9f141idsz4mnhxvjrc3gj721wxh1fhikps0djx")))) - (build-system python-build-system) + (base32 "1p49h4k216iwap3axws7ffz94zn25j85f7kkv3wky1fvsb8i1r4h")))) + (build-system pyproject-build-system) (arguments - ;; tests require synapse, creating a circular dependency. - '(#:tests? #f - #:phases (modify-phases %standard-phases - ;; Also, auth_provider.py attempts to import synapse. - (delete 'sanity-check)))) + (list + #:tests? #f ; tests require synapse, creating a circular dependency. + #:phases + #~(modify-phases %standard-phases + ;; Also, auth_provider.py attempts to import synapse. + (delete 'sanity-check)))) + (native-inputs (list python-setuptools)) (propagated-inputs (list python-twisted python-ldap3 python-service-identity)) (home-page "https://github.com/matrix-org/matrix-synapse-ldap3")