1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-26 20:20:32 +02:00

gnu: python-nanoid: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-nanoid): Re-indent.
[build-system]: Switch to pyproject-build-system.
[arguments]: Drop them.
[native-inputs]: Add python-pytest, python-setuptools.

Change-Id: I4fe87423021c6f5dc469e6e548469d7ccb748f39
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves
2025-11-22 19:13:55 +01:00
committed by Sharlatan Hellseher
parent 4752e43eb0
commit b225dcf0d7

View File

@@ -35701,37 +35701,29 @@ for persistent data structures. It was written initially to support replacing
(license license:expat)))
(define-public python-nanoid
;; There are no tests on PyPi.
(let ((commit "061f9a598f310b0e2e91b9ed6ce725a22770da64")
(revision "0"))
(package
(name "python-nanoid")
(version "2.0.0")
(package
(name "python-nanoid")
(version "2.0.0")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/puyuan/py-nanoid")
(commit commit)))
(url "https://github.com/puyuan/py-nanoid")
(commit commit)))
(file-name (git-file-name name commit))
(sha256
(base32 "0y1bcw0h27g8rkqq7cp33ywn0i0lp0q3rjixzkh4191y1dp9yf8s"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(home-page "https://github.com/puyuan/py-nanoid")
(synopsis "Unique string ID generator")
(description
"This package provides a tiny, secure, URL-friendly, unique string ID
(build-system pyproject-build-system)
(native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/puyuan/py-nanoid")
(synopsis "Unique string ID generator")
(description
"This package provides a tiny, secure, URL-friendly, unique string ID
generator for Python.")
(license license:expat))))
(license license:expat))))
(define-public python-misskey
(package