summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-22 02:13:42 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-25 11:32:13 +0100
commit4368cda72dc0490b41b10eb71a16b4a128616b8d (patch)
tree37d3d99945488d54327ddbbc7b31886ecd955353 /gnu/packages/python-xyz.scm
parentbee81b5d399ec61457918c0bf3ef53b4d9bb19d1 (diff)
gnu: python-unpaddedbase64: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-unpaddedbase64): [source]: Swith to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Remove them. [native-inputs]: Add python-poetry-core, python-setuptools, python-wheel. Remove the "tests" input since it's now the source. Change-Id: I0d09e23cd3580dc6fa28ebcc9dc69da883116378 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm40
1 files changed, 11 insertions, 29 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 39bda1b4b7..aca0c1d32a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32973,36 +32973,18 @@ replacement for dictionaries where immutability is desired.")
(version "2.1.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "unpaddedbase64" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/matrix-org/python-unpaddedbase64")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "01ghlmw63fgslwj8j74vkpf1kqvr7a4agm6nyn89vqwx106ccwvj"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs tests? #:allow-other-keys)
- (when tests?
- (copy-recursively (string-append
- (assoc-ref inputs "tests") "/tests")
- "tests")
- (invoke "python" "-m" "pytest" "-vv")))))))
- (native-inputs
- `(("python-pytest" ,python-pytest)
- ("tests"
- ;; The release on pypi comes without tests. We can't build from this
- ;; checkout, though, because installation requires an invocation of
- ;; poetry.
- ,(origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/matrix-org/python-unpaddedbase64")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz"))))))
+ (base32 "1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-poetry-core
+ python-pytest
+ python-setuptools
+ python-wheel))
(home-page "https://github.com/matrix-org/python-unpaddedbase64")
(synopsis "Encode and decode Base64 without “=” padding")
(description