mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: python-pyproject-metadata: Simplify by using pyproject-build-system.
* gnu/packages/python-xyz.scm (python-pyproject-metadata)[arguments]: Remove. [build-system]: Use pyproject-build-system.
This commit is contained in:
parent
db3d74008a
commit
1a21f4117e
1 changed files with 1 additions and 25 deletions
|
@ -11912,31 +11912,7 @@ (define-public python-pyproject-metadata
|
|||
(sha256
|
||||
(base32
|
||||
"00zahgw9zjfqwf0218bj5k732aibnn68cq1p8f0wmbirb7fy5k31"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-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 'check
|
||||
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "pytest" "-vv"
|
||||
;; Two parameterized test_load tests are currently
|
||||
;; failing (see:
|
||||
;; https://github.com/FFY00/python-pep621/issues/14).
|
||||
"-k" "not test_load"))))
|
||||
(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)))))))
|
||||
(build-system pyproject-build-system)
|
||||
(propagated-inputs (list python-packaging))
|
||||
(native-inputs (list python-pypa-build python-pytest python-tomli))
|
||||
(home-page "https://github.com/FFY00/python-pyproject-metadata")
|
||||
|
|
Loading…
Reference in a new issue