aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2024-05-10 00:52:58 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 20:18:47 +0000
commit4e4b54700583e42d928f8b61ca535c5dc1aa6e14 (patch)
tree1d434bb57a4087a9ff6d32b74af15f9b0b926b0f
parente187c39fceed8f8577723d680e8fe806e4363f06 (diff)
downloadguix-4e4b54700583e42d928f8b61ca535c5dc1aa6e14.tar.gz
guix-4e4b54700583e42d928f8b61ca535c5dc1aa6e14.zip
gnu: python-black: Move to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-black): Improve package style. [build-system]: Move to pyproject-build-system. [arguments]<#:phases>: Improve style of use-absolute-file-names phase. Remove phase check. Change-Id: If2da4b3b0fea4928d1aeb270fbaa4167f20a6ee5 Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/python-xyz.scm18
1 files changed, 6 insertions, 12 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3d632d9474..612d617115 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8572,22 +8572,16 @@ and integrated feature-set for programming Python effectively.")
(sha256
(base32
"0yfahlqc7dsdp1js0cbv706apldnfnlbal9b53cww8n0hs40n0im"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'patch-source-shebangs 'use-absolute-file-names
- (lambda* (#:key native-inputs inputs #:allow-other-keys)
- (let* ((inpts (or native-inputs inputs))
- (python3 (search-input-file inpts "/bin/python3")))
- (substitute* (find-files "tests" "\\.py$")
- (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
- (string-append "#!" python3 (if (string? minor-version)
- minor-version
- "")))))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests? (invoke "pytest" "-vv")))))))
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* (find-files "tests" "\\.py$")
+ (("#!/usr/bin/env python3")
+ (string-append
+ "#!" (search-input-file inputs "/bin/python3")))))))))
(propagated-inputs
(list python-click
python-attrs