[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/11: gnu: python-jsonschema-next: Simplify package.
From: |
guix-commits |
Subject: |
07/11: gnu: python-jsonschema-next: Simplify package. |
Date: |
Sun, 8 Jan 2023 10:14:20 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 7dbc7f6ca3eb97388f4db218e015dbeca6fef49a
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Dec 5 23:48:14 2022 +0000
gnu: python-jsonschema-next: Simplify package.
To have this package on the latest version Guix needs to have new Python
build procedure with Hatch https://hatch.pypa.io/.
* gnu/packages/python-xyz.scm (python-jsonschema-next):
[build-system]: Use pyproject-build-system to simplify package.
[native-inputs]: Remove python-pypa-build.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-xyz.scm | 24 +++++-------------------
1 file changed, 5 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bab4a907ac..fe82775cea 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3931,6 +3931,8 @@ compare, diff, and patch JSON and JSON-like structures in
Python.")
(define-public python-jsonschema-next
(package
(inherit python-jsonschema)
+ ;; XXX: Update to the latest version requires new build system - Hatch
+ ;; https://hatch.pypa.io/
(version "4.5.1")
(source
(origin
@@ -3938,25 +3940,9 @@ compare, diff, and patch JSON and JSON-like structures
in Python.")
(uri (pypi-uri "jsonschema" version))
(sha256
(base32 "1z0x22691jva7lwfcfh377jdmlz68zhiawxzl53k631l34k8hvbw"))))
- (arguments
- (substitute-keyword-arguments (package-arguments python-jsonschema)
- ((#:phases phases)
- #~(modify-phases #$phases
- ;; XXX: PEP 517 manual build/install procedures copied from
- ;; python-isort.
- (replace 'build
- (lambda _
- ;; ZIP does not support timestamps before 1980.
- (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))))))))
- (native-inputs (list python-pypa-build
- python-setuptools-scm
- python-twisted))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-setuptools-scm python-twisted))
(propagated-inputs
(list python-attrs
python-importlib-metadata
- branch master updated (3012dad9eb -> f5ea392b9c), guix-commits, 2023/01/08
- 02/11: gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking errors., guix-commits, 2023/01/08
- 01/11: gnu-maintenance: Factorize 'false-if-networking-failure'., guix-commits, 2023/01/08
- 07/11: gnu: python-jsonschema-next: Simplify package.,
guix-commits <=
- 04/11: refresh: Add CLI tests., guix-commits, 2023/01/08
- 09/11: gnu: python-proselint: Use official home page URL., guix-commits, 2023/01/08
- 06/11: gnu: Add python-pydicom., guix-commits, 2023/01/08
- 03/11: import: stackage: Catch networking errors in predicate., guix-commits, 2023/01/08
- 10/11: gnu: Add power-profiles-daemon., guix-commits, 2023/01/08
- 05/11: gnu: Add gdcm., guix-commits, 2023/01/08
- 08/11: gnu: clamav: Update to 0.103.7., guix-commits, 2023/01/08
- 11/11: gnu: Add vkmark., guix-commits, 2023/01/08