gnu: Add python-slugid.

* gnu/packages/python-xyz.scm (python-slugid): New variable.

Co-authored-by: jgart <jgart@dismail.de>
This commit is contained in:
AwesomeAdam54321 2023-03-31 13:19:29 -05:00 committed by jgart
parent 321ae25a26
commit 4d4b9a9c13
No known key found for this signature in database
GPG Key ID: A52AA2B477B6DD35

View File

@ -17349,6 +17349,36 @@ can also be used to get the exact location, font or color of the text.")
is made as zipfile like as possible.") is made as zipfile like as possible.")
(license license:isc))) (license license:isc)))
(define-public python-slugid
(package
(name "python-slugid")
(version "2.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/taskcluster/slugid.py")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1h64p2jlqv6lsmw8h2j203kx3bhv72cwzpk5gdhsaamw30cp3h1i"))))
(build-system python-build-system)
(native-inputs (list python-nose))
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs tests? #:allow-other-keys)
(when tests?
;; The project uses tox to run the tests via nose.
(invoke "nosetests" "-v" "test.py")))))))
(home-page "http://taskcluster.github.io/slugid.py")
(synopsis "Module for Base64 encoded UUID v4 slugs")
(description "This package provides a module for generating v4
UUIDs and encoding them into 22 character URL-safe base64 slug
representation.")
(license license:mpl2.0)))
(define-public python-rich (define-public python-rich
(package (package
(name "python-rich") (name "python-rich")