diff mbox series

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

Message ID 20221018234250.17292-1-jgart@dismail.de
State New
Headers show
Series [bug#58615,1/2] gnu: Add python-objprint. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

jgart Oct. 18, 2022, 11:42 p.m. UTC
* gnu/packages/python-xyz.scm (python-objprint): New variable.
---
 gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
diff mbox series

Patch

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