Subject: bug#59270: closed (Re: bug#59270: [PATCH] gnu: Add python-pynixutil.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 28 Nov 2022 22:18:02 +0000

Your bug report

#59270: [PATCH] gnu: Add python-pynixutil.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
59270: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59270
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#59270: [PATCH] gnu: Add python-pynixutil.
From: Ludovic Courtès <[email-masked]>
To: Hilton Chain <[email-masked]>
Cc: [email-masked]
Date: Mon, 28 Nov 2022 23:16:58 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Hilton Chain <[email-masked]> skribis:

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

Applied, thanks!

Subject: [PATCH] gnu: Add python-pynixutil.
From: Hilton Chain <[email-masked]>
To: [email-masked]
Date: Mon, 14 Nov 2022 13:44:22 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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