mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
bee81b5d39
commit
4368cda72d
1 changed files with 11 additions and 29 deletions
|
@ -32973,36 +32973,18 @@ replacement for dictionaries where immutability is desired.")
|
||||||
(version "2.1.0")
|
(version "2.1.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "unpaddedbase64" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/matrix-org/python-unpaddedbase64")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "01ghlmw63fgslwj8j74vkpf1kqvr7a4agm6nyn89vqwx106ccwvj"))))
|
(base32 "1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(native-inputs (list python-poetry-core
|
||||||
`(#:phases
|
python-pytest
|
||||||
(modify-phases %standard-phases
|
python-setuptools
|
||||||
(replace 'check
|
python-wheel))
|
||||||
(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"))))))
|
|
||||||
(home-page "https://github.com/matrix-org/python-unpaddedbase64")
|
(home-page "https://github.com/matrix-org/python-unpaddedbase64")
|
||||||
(synopsis "Encode and decode Base64 without “=” padding")
|
(synopsis "Encode and decode Base64 without “=” padding")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue