all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#62077] [PATCH] gnu: Add python-slugid.
@ 2023-03-09 16:46 Adam Faiz via Guix-patches via
  2023-03-09 18:03 ` jgart via Guix-patches via
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Adam Faiz via Guix-patches via @ 2023-03-09 16:46 UTC (permalink / raw)
  To: 62077; +Cc: jgart, lars

 From f788ce8ebc205a6e05bcc270865d793d94bf51e9 Mon Sep 17 00:00:00 2001
Message-Id: <f788ce8ebc205a6e05bcc270865d793d94bf51e9.1678379861.git.adam.faiz@disroot.org>
From: AwesomeAdam54321 <adam.faiz@disroot.org>
Date: Thu, 9 Mar 2023 21:39:13 +0800
Subject: [PATCH] gnu: Add python-slugid.

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 83f3ec02ea..4bacd86432 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1096,6 +1096,23 @@ (define-public python-slixmpp
      (home-page "https://lab.louiz.org/poezio/slixmpp")
      (license license:expat)))
  
+(define-public python-slugid
+  (package
+    (name "python-slugid")
+    (version "2.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "slugid" version))
+              (sha256
+               (base32
+                "15x2kgzi38b023brfyng0y907am2qi1jgifnsjyph4b9fa5xjl59"))))
+    (build-system python-build-system)
+    (home-page "http://taskcluster.github.io/slugid.py/")
+    (synopsis "Module for Base64 encoded UUID v4 slugs")
+    (description "Slugid.py is a module for generating v4 UUIDs and
+encoding them into 22 character URL-safe base64 slug representation.")
+    (license license:mpl2.0)))
+
  (define-public python-tenacity
    (package
      (name "python-tenacity")

base-commit: 5befcff66edb4d72ab8e713c81836fb8519ce3e6
-- 
2.39.2






^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#62077] [PATCH] gnu: Add python-slugid.
  2023-03-09 16:46 [bug#62077] [PATCH] gnu: Add python-slugid Adam Faiz via Guix-patches via
@ 2023-03-09 18:03 ` jgart via Guix-patches via
  2023-03-31 18:19 ` [bug#62077] [PATCH v2] " jgart via Guix-patches via
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jgart via Guix-patches via @ 2023-03-09 18:03 UTC (permalink / raw)
  To: adam.faiz, 62077; +Cc: lars

Hi, 

I'll test this out from my end today and report back. Thanks for the patch!

all best,

jgart




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#62077] [PATCH v2] gnu: Add python-slugid.
  2023-03-09 16:46 [bug#62077] [PATCH] gnu: Add python-slugid Adam Faiz via Guix-patches via
  2023-03-09 18:03 ` jgart via Guix-patches via
@ 2023-03-31 18:19 ` jgart via Guix-patches via
  2023-05-19  6:03 ` jgart via Guix-patches via
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jgart via Guix-patches via @ 2023-03-31 18:19 UTC (permalink / raw)
  To: 62077; +Cc: lars, jgart, Adam Faiz

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

Co-authored-by: jgart <jgart@dismail.de>
---

Hi Adam,

Thanks for the patch and sorry for the delay in reviewing this. I've
been busy. I've attached a version 2 of your patch with modifications.
I've also added myself as a "co-author" since I've made a few changes
to your patch.

I modified the package to take the source from GitHub since the GitHub
repository includes the tests and the PyPi version does not. We usually
try to enable the tests on all of our packages when available and
practical. I added a phase in the arguments <package> field implementing
that.

I also added a comment mentioning that tests are run by nose via tox. In
my approach here I just run nose directly and forego using tox.

Hi Lars, 

WDYT. Can this be merged? I don't have commit access so someone
else would have to merge it.

all best,

jgart

 gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ca6c68ec7c..5c44817afa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16801,6 +16801,36 @@ (define-public python-rarfile
 is made as zipfile like as possible.")
     (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
   (package
     (name "python-rich")
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#62077] [PATCH v2] gnu: Add python-slugid.
  2023-03-09 16:46 [bug#62077] [PATCH] gnu: Add python-slugid Adam Faiz via Guix-patches via
  2023-03-09 18:03 ` jgart via Guix-patches via
  2023-03-31 18:19 ` [bug#62077] [PATCH v2] " jgart via Guix-patches via
@ 2023-05-19  6:03 ` jgart via Guix-patches via
  2023-05-19  6:04 ` [bug#62077] jgart via Guix-patches via
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jgart via Guix-patches via @ 2023-05-19  6:03 UTC (permalink / raw)
  To: AwesomeAdam54321, 62077

Hi Adam,

I merged v2. Thanks for your contribution to GNU Guix.

all best,

jgart




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#62077]
  2023-03-09 16:46 [bug#62077] [PATCH] gnu: Add python-slugid Adam Faiz via Guix-patches via
                   ` (2 preceding siblings ...)
  2023-05-19  6:03 ` jgart via Guix-patches via
@ 2023-05-19  6:04 ` jgart via Guix-patches via
  2023-05-19  6:15 ` [bug#62077] jgart via Guix-patches via
  2023-05-19  6:27 ` [bug#62077] jgart via Guix-patches via
  5 siblings, 0 replies; 7+ messages in thread
From: jgart via Guix-patches via @ 2023-05-19  6:04 UTC (permalink / raw)
  To: 62077

done




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#62077]
  2023-03-09 16:46 [bug#62077] [PATCH] gnu: Add python-slugid Adam Faiz via Guix-patches via
                   ` (3 preceding siblings ...)
  2023-05-19  6:04 ` [bug#62077] jgart via Guix-patches via
@ 2023-05-19  6:15 ` jgart via Guix-patches via
  2023-05-19  6:27 ` [bug#62077] jgart via Guix-patches via
  5 siblings, 0 replies; 7+ messages in thread
From: jgart via Guix-patches via @ 2023-05-19  6:15 UTC (permalink / raw)
  To: 62077

close 62077




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#62077]
  2023-03-09 16:46 [bug#62077] [PATCH] gnu: Add python-slugid Adam Faiz via Guix-patches via
                   ` (4 preceding siblings ...)
  2023-05-19  6:15 ` [bug#62077] jgart via Guix-patches via
@ 2023-05-19  6:27 ` jgart via Guix-patches via
  5 siblings, 0 replies; 7+ messages in thread
From: jgart via Guix-patches via @ 2023-05-19  6:27 UTC (permalink / raw)
  To: 62077

"close 62077"




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-19  6:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-09 16:46 [bug#62077] [PATCH] gnu: Add python-slugid Adam Faiz via Guix-patches via
2023-03-09 18:03 ` jgart via Guix-patches via
2023-03-31 18:19 ` [bug#62077] [PATCH v2] " jgart via Guix-patches via
2023-05-19  6:03 ` jgart via Guix-patches via
2023-05-19  6:04 ` [bug#62077] jgart via Guix-patches via
2023-05-19  6:15 ` [bug#62077] jgart via Guix-patches via
2023-05-19  6:27 ` [bug#62077] jgart via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.