From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 57221@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#57221] [PATCH] gnu: Add python-nanoid.
Date: Sun, 14 Aug 2022 21:05:53 -0500 [thread overview]
Message-ID: <20220815020553.29149-1-jgart@dismail.de> (raw)
* gnu/packages/python-xyz.scm (python-nanoid): New variable.
---
gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 13ab2f2c8b..2122db30c6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30531,6 +30531,39 @@ (define-public python-types-orjson
etc. to check code that uses @code{orjson}.")
(license license:asl2.0)))
+(define-public python-nanoid
+ ;; There are no tests on PyPi.
+ (let ((commit "061f9a598f310b0e2e91b9ed6ce725a22770da64")
+ (revision "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)))
+ (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
+generator for Python")
+ (license license:expat))))
+
(define-public python-misskey
(package
(name "python-misskey")
--
2.37.2
next reply other threads:[~2022-08-15 2:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-15 2:05 jgart via Guix-patches via [this message]
2022-08-15 5:43 ` bug#57221: [PATCH] gnu: Add python-nanoid 宋文武 via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220815020553.29149-1-jgart@dismail.de \
--to=guix-patches@gnu.org \
--cc=57221@debbugs.gnu.org \
--cc=jgart@dismail.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).