emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57221: closed ([PATCH] gnu: Add python-nanoid.)


From: GNU bug Tracking System
Subject: bug#57221: closed ([PATCH] gnu: Add python-nanoid.)
Date: Mon, 15 Aug 2022 05:45:02 +0000

Your message dated Mon, 15 Aug 2022 13:43:54 +0800
with message-id <87lerqhxid.fsf@envs.net>
and subject line Re: bug#57221: [PATCH] gnu: Add python-nanoid.
has caused the debbugs.gnu.org bug report #57221,
regarding [PATCH] gnu: Add python-nanoid.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
57221: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57221
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-nanoid. Date: Sun, 14 Aug 2022 21:05:53 -0500
* 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




--- End Message ---
--- Begin Message --- Subject: Re: bug#57221: [PATCH] gnu: Add python-nanoid. Date: Mon, 15 Aug 2022 13:43:54 +0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
jgart <jgart@dismail.de> writes:

> * gnu/packages/python-xyz.scm (python-nanoid): New variable.
> ---
>  gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)

I fixed 'description' (indent and ending period) and pushed, thank you!


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]