[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/15: gnu: python-canonicaljson: Update to 1.6.3.
From: |
guix-commits |
Subject: |
03/15: gnu: python-canonicaljson: Update to 1.6.3. |
Date: |
Sat, 5 Nov 2022 06:48:05 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit b3147b149c8c44f5b4fe20936438165fa449fe20
Author: Michael Rohleder <mike@rohleder.de>
AuthorDate: Sun Oct 23 05:51:01 2022 +0200
gnu: python-canonicaljson: Update to 1.6.3.
* gnu/packages/python-xyz.scm (python-canonicaljson): Update to 1.6.3.
[arguments]: Add phases build, check and install to build with pep517.
Add phase loosen-requirements to build with python-setuptools-scm >3.
[native-inputs]: Add python-pypa-build, python-pytest, python-setuptools,
python-setuptools-scm.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cd713c565e..b2e64677cf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26157,14 +26157,39 @@ information for your operating system.")
(define-public python-canonicaljson
(package
(name "python-canonicaljson")
- (version "1.4.0")
+ (version "1.6.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "canonicaljson" version))
(sha256
- (base32 "0c86g0vvzdcg3nrcsqnbzlfhpprc2i894p8i14hska56yl27d6w9"))))
+ (base32 "0j5lq191jkd483q6xzc16c9fahxf15lrv03mvah9ka3lq85pcnfa"))))
(build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'loosen-requirements
+ (lambda _
+ ;; Permit newer versions of setuptools_scm
+ (substitute* "pyproject.toml"
+ ((">= 2.0.0, <3") ">= 2.0.0"))))
+ (replace 'build
+ (lambda _
+ ;; ZIP does not support timestamps before 1980.
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest"))))
+ (replace 'install
+ (lambda _
+ (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-pytest python-setuptools
python-setuptools-scm))
(propagated-inputs
(list python-six python-frozendict python-simplejson))
(home-page "https://github.com/matrix-org/python-canonicaljson")
- branch master updated (e67f9d7ab0 -> 84d239599a), guix-commits, 2022/11/05
- 09/15: gnu: Add ssh-to-age., guix-commits, 2022/11/05
- 10/15: gnu: thefuck: Update to 3.32., guix-commits, 2022/11/05
- 05/15: gnu: Add tasksh., guix-commits, 2022/11/05
- 13/15: gnu: python-funcparserlib: Enable tests., guix-commits, 2022/11/05
- 15/15: gnu: python-pudb: Update to 2022.1.3., guix-commits, 2022/11/05
- 01/15: Add EditorConfig specification., guix-commits, 2022/11/05
- 07/15: gnu: oauth2l: Update to 1.3.0., guix-commits, 2022/11/05
- 02/15: gnu: python-frozendict: Update to 2.3.4., guix-commits, 2022/11/05
- 03/15: gnu: python-canonicaljson: Update to 1.6.3.,
guix-commits <=
- 04/15: gnu: Add guilescript., guix-commits, 2022/11/05
- 06/15: gnu: Add python-neovim-remote., guix-commits, 2022/11/05
- 11/15: gnu: i3-autotiling: Update to 1.8., guix-commits, 2022/11/05
- 08/15: gnu: neomutt: Update to 20220429., guix-commits, 2022/11/05
- 12/15: gnu: python-lief: Update to 0.12.3., guix-commits, 2022/11/05
- 14/15: gnu: kicad: Update to 6.0.9., guix-commits, 2022/11/05