me
/
guix
Archived
1
0
Fork 0

gnu: shrinkwrap: Use pyproject-build-system.

* gnu/packages/python-xyz.scm (shrinkwrap)[arguments]: Remove.
[build-system]: Use pyproject-build-system.
master
Ricardo Wurmus 2023-05-12 22:53:46 +02:00
parent e4ca1bcea5
commit 206815b796
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 1 additions and 18 deletions

View File

@ -32861,24 +32861,7 @@ Storage}.")
(sha256
(base32
"1f3qrygj16y767q2c7pn9j6m95ggcmj9s5cx9v92ygygly4mr3jp"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v" "tests"))))
;; XXX: PEP 517 manual build copied from python-isort.
(replace 'build
(lambda _
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'install
(lambda _
(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)
(native-inputs
(list python-click
python-poetry-core