diff options
author | jgart <jgart@dismail.de> | 2022-08-14 21:05:53 -0500 |
---|---|---|
committer | 宋文武 <iyzsong@member.fsf.org> | 2022-08-15 13:42:21 +0800 |
commit | 94dc157ae4dff84f767772d0401824fdc50b28e0 (patch) | |
tree | 7cef0fc09725fdc2a72e7ae1aabbcc21e44d929d /gnu/packages/python-xyz.scm | |
parent | bd8fdbe0105c3d87de9baa84917eb466ea623838 (diff) | |
download | guix-94dc157ae4dff84f767772d0401824fdc50b28e0.tar.gz guix-94dc157ae4dff84f767772d0401824fdc50b28e0.zip |
gnu: Add python-nanoid.
* gnu/packages/python-xyz.scm (python-nanoid): New variable.
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 13ab2f2c8b..5d492d073c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30531,6 +30531,39 @@ package. It can be used by type-checking tools like mypy, PyCharm, pytype 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") |