unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59270] [PATCH] gnu: Add python-pynixutil.
@ 2022-11-14  5:44 Hilton Chain via Guix-patches via
  2022-11-28 22:16 ` bug#59270: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Hilton Chain via Guix-patches via @ 2022-11-14  5:44 UTC (permalink / raw)
  To: 59270

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e26656fa32..00c0d56353 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23036,6 +23036,32 @@ (define-public python-pynamecheap
      "PyNamecheap is a Namecheap API client in Python.")
     (license license:expat)))
 
+(define-public python-pynixutil
+  (package
+    (name "python-pynixutil")
+    (version "0.5.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/nix-community/pynixutil")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              ;; Derivation test uses nix.
+              (modules '((guix build utils)))
+              (snippet '(delete-file "tests/test_drv.py"))
+              (sha256
+               (base32
+                "1lnspcai7mqpv73bbd8kgyw63fxwgkwvfkl09b2bl5y2g2v7np6m"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list poetry python-pytest))
+    (home-page "https://github.com/nix-community/pynixutil")
+    (synopsis "Utility functions for working with data from Nix in Python")
+    (description
+     "@code{pynixutil} provides functions for base32 encoding/decoding and
+derivation parsing, namingly @code{b32decode()}, @code{b32encode()} and
+@code{drvparse()}.")
+    (license license:expat)))
+
 (define-public python-dns-lexicon
   (package
     (name "python-dns-lexicon")

base-commit: 775134ebf537895bcb7bf2a6c541846845403737
-- 
2.38.1





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

* bug#59270: [PATCH] gnu: Add python-pynixutil.
  2022-11-14  5:44 [bug#59270] [PATCH] gnu: Add python-pynixutil Hilton Chain via Guix-patches via
@ 2022-11-28 22:16 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-11-28 22:16 UTC (permalink / raw)
  To: Hilton Chain; +Cc: 59270-done

Hi,

Hilton Chain <hako@ultrarare.space> skribis:

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

Applied, thanks!




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

end of thread, other threads:[~2022-11-28 22:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14  5:44 [bug#59270] [PATCH] gnu: Add python-pynixutil Hilton Chain via Guix-patches via
2022-11-28 22:16 ` bug#59270: " Ludovic Courtès

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).