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 <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-10-01 00:40:00 +02:00 committed by Sharlatan Hellseher
parent 2620b5fe5f
commit e6b4c19b3f
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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")