mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
gnu: python-canonicaljson: Use pyproject-build-system.
* gnu/packages/python-xyz.scm (python-canonicaljson)[arguments]: Remove custom 'build, 'check, and 'install phases. [build-system]: Use pyproject-build-system.
This commit is contained in:
parent
1a21f4117e
commit
27341afe53
1 changed files with 2 additions and 16 deletions
|
@ -27472,7 +27472,7 @@ (define-public python-canonicaljson
|
||||||
(uri (pypi-uri "canonicaljson" version))
|
(uri (pypi-uri "canonicaljson" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0j5lq191jkd483q6xzc16c9fahxf15lrv03mvah9ka3lq85pcnfa"))))
|
(base32 "0j5lq191jkd483q6xzc16c9fahxf15lrv03mvah9ka3lq85pcnfa"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:phases
|
#:phases
|
||||||
|
@ -27481,21 +27481,7 @@ (define-public python-canonicaljson
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Permit newer versions of setuptools_scm
|
;; Permit newer versions of setuptools_scm
|
||||||
(substitute* "pyproject.toml"
|
(substitute* "pyproject.toml"
|
||||||
((">= 2.0.0, <3") ">= 2.0.0"))))
|
((">= 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
|
(native-inputs
|
||||||
(list python-pypa-build python-pytest python-setuptools python-setuptools-scm))
|
(list python-pypa-build python-pytest python-setuptools python-setuptools-scm))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
|
Loading…
Reference in a new issue