[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
138/361: gnu: python-black: Move to pyproject-build-system.
From: |
guix-commits |
Subject: |
138/361: gnu: python-black: Move to pyproject-build-system. |
Date: |
Fri, 22 Nov 2024 06:00:28 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit 63153c966e425f24cbf6213a7e032b91269412ec
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Fri May 10 00:52:58 2024 +0200
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>
---
gnu/packages/python-xyz.scm | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 38d41d96fc..c078330bc1 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
- 47/361: gnu: python-vine: Add missing inputs., (continued)
- 47/361: gnu: python-vine: Add missing inputs., guix-commits, 2024/11/22
- 338/361: gnu: python-watchdog: Update to 6.0.0., guix-commits, 2024/11/22
- 52/361: gnu: python-pyproject-metadata: Disable two tests., guix-commits, 2024/11/22
- 49/361: gnu: python-box: Add missing input., guix-commits, 2024/11/22
- 48/361: gnu: python-joblib: Add missing inputs., guix-commits, 2024/11/22
- 84/361: gnu: python-jupyter-kernel-mgmt: Use Tornado 6., guix-commits, 2024/11/22
- 92/361: gnu: python-jupyter-client: Update to 7.4.4., guix-commits, 2024/11/22
- 91/361: gnu: python-trio: Use pyproject-build-system., guix-commits, 2024/11/22
- 121/361: gnu: python-rope: Update to 1.13.0., guix-commits, 2024/11/22
- 129/361: gnu: python-mistune: Update to 3.0.2., guix-commits, 2024/11/22
- 138/361: gnu: python-black: Move to pyproject-build-system.,
guix-commits <=
- 123/361: gnu: python-lsp-server: Update to 1.11.0., guix-commits, 2024/11/22
- 139/361: gnu: python-isort: Move to pyproject-build-system., guix-commits, 2024/11/22
- 140/361: gnu: python-codespell: Improve package style., guix-commits, 2024/11/22
- 142/361: gnu: python-http-ece: Update to 1.2.0., guix-commits, 2024/11/22
- 144/361: gnu: python-aionotify: Update to 0.3.0., guix-commits, 2024/11/22
- 153/361: gnu: python-apiron: Move to pyproject-build-system., guix-commits, 2024/11/22
- 171/361: gnu: python-cucumber-tag-expressions: Move to pyproject-build-system., guix-commits, 2024/11/22
- 164/361: gnu: python-nbval: Move to pyproject-build-system., guix-commits, 2024/11/22
- 168/361: gnu: python-cbor2: Move to pyproject-build-system., guix-commits, 2024/11/22
- 166/361: gnu: gunicorn: Update to 21.2.0., guix-commits, 2024/11/22