guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#58615] [PATCH 1/2] gnu: Add python-objprint.


From: jgart
Subject: [bug#58615] [PATCH 1/2] gnu: Add python-objprint.
Date: Tue, 18 Oct 2022 18:42:49 -0500

* gnu/packages/python-xyz.scm (python-objprint): New variable.
---
 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 f215f40915..5d1fa0c97f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31142,6 +31142,36 @@ (define-public python-lief
 and abstract ELF, PE and MachO formats.")
     (license license:asl2.0)))
 
+(define-public python-objprint
+  (package
+    (name "python-objprint")
+    (version "0.2.2")
+    ;; The tests are not included in the PyPI archive.
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/gaogaotiantian/objprint";)
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0jh9swg4cag2vxyzrjmsdmdrak6zhlgg8fjsnmmis8dm8bb41fq9"))))
+    (build-system python-build-system)
+    (native-inputs (list python-pytest))
+    (arguments
+      `(#:phases
+        (modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? inputs #:allow-other-keys)
+              (when tests?
+                (invoke "pytest" "-v")))))))
+    (home-page "https://github.com/gaogaotiantian/objprint";)
+    (synopsis "Print Python objects in human readable format")
+    (description
+"This package provides a library that can print Python objects in human
+readable format.")
+    (license license:asl2.0)))
+
 (define-public python-pymonad
   (package
     (name "python-pymonad")
-- 
2.38.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]