[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58310] [PATCH 01/14] gnu: Add python-pprintpp.
From: |
Garek Dyszel |
Subject: |
[bug#58310] [PATCH 01/14] gnu: Add python-pprintpp. |
Date: |
Wed, 05 Oct 2022 13:40:16 -0400 |
* gnu/packages/python-xyz.scm (python-pprintpp): New variable.
---
gnu/packages/python-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8575d4a67e..439765dc4f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16688,6 +16688,60 @@ (define-public python-tabulate
data in Python.")
(license license:expat)))
+(define-public python-pprintpp
+ ;; Git version tags are inaccurate for this package; use the
+ ;; bare commit.
+ (let ((commit "7ede6da1f3062bbfb32ee04353d675a5bff185e0")
+ (revision "1"))
+ (package
+ (name "python-pprintpp")
+ (version (git-version "0.3.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/wolever/pprintpp")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nk935m3ig8sc32laqbh698vwpk037yw27gd3nvwwzdv42jal2li"))))
+ (inputs (list python-pypa-build python-hypothesis python-wheel
+ python-parameterized))
+ (native-inputs (list python-pytest python-nose))
+ (build-system python-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python"
+ "-m"
+ "build"
+ "--wheel"
+ "--no-isolation"
+ ".")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip"
+ "--no-cache-dir"
+ "--no-input"
+ "install"
+ "--no-deps"
+ "--prefix"
+ #$output
+ whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "test.py")))))))
+ (home-page "https://github.com/wolever/pprintpp")
+ (synopsis "Python pretty-printer")
+ (description
+ "This package is a printer for Python which pretty-prints structures.
+It also attempts to print Unicode characters without escaping them.")
+ (license license:bsd-3))))
+
(define-public python-kazoo
(package
(name "python-kazoo")
base-commit: fd6cd9de8682c7ddf96bf8deb637b1ca6cdbd205
--
2.37.3
- [bug#58310] [PATCH] Add coq-mathcomp-analysis, Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 01/14] gnu: Add python-pprintpp.,
Garek Dyszel <=
- [bug#58310] [PATCH 03/14] gnu: Add python-setuptools-scm-7.* gnu/packages/python-build.scm (python-setuptools-scm-7): New variable., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 02/14] gnu: Add python-pluggy-1.0.* gnu/packages/python-xyz.scm (python-pluggy-1.0): New variable., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 04/14] gnu: Add python-hatchling-bootstrap., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 08/14] gnu: Add python-hatch-fancy-pypi-readme., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 07/14] gnu: Add python-pytest-icdiff., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 05/14] gnu: Add python-hatch., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 06/14] gnu: Add python-hatch-vcs., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 10/14] gnu: Add ocaml-atd., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 09/14] gnu: python-jsonschema-next: Update to 4.16.0., Garek Dyszel, 2022/10/05
- [bug#58310] [PATCH 14/14] gnu: Add coq-mathcomp-analysis., Garek Dyszel, 2022/10/05