[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/91: gnu: python-black: Move to pyproject-build-system.
From: |
guix-commits |
Subject: |
03/91: gnu: python-black: Move to pyproject-build-system. |
Date: |
Thu, 23 May 2024 17:17:25 -0400 (EDT) |
ngz pushed a commit to branch python-team
in repository guix.
commit 8de03411063c549df0b2ba25cfc2409eaa57c7d8
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 00aa7bc9a4..4051764b5e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8264,22 +8264,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
- 77/91: gnu: borgmatic: Move to pyproject-build-system., (continued)
- 77/91: gnu: borgmatic: Move to pyproject-build-system., guix-commits, 2024/05/23
- 80/91: gnu: python-fenics-dijitso: Move to pyproject-build-system., guix-commits, 2024/05/23
- 87/91: gnu: python-qemu-qmp: Improve package style., guix-commits, 2024/05/23
- 82/91: gnu: python-numpydoc: Move to pyproject-build-sytem., guix-commits, 2024/05/23
- 91/91: gnu: build-system/pyproject: Add missing native-inputs., guix-commits, 2024/05/23
- 85/91: gnu: python-certauth: Move to pyproject-build-system., guix-commits, 2024/05/23
- 86/91: gnu: python-matplotlib: Ignore failing tests., guix-commits, 2024/05/23
- 08/91: gnu: python-zope-i18nmessageid: Update to 5.1.1., guix-commits, 2024/05/23
- 14/91: gnu: Add ghc-language-python., guix-commits, 2024/05/23
- 04/91: gnu: python-isort: Move to pyproject-build-system., guix-commits, 2024/05/23
- 03/91: gnu: python-black: Move to pyproject-build-system.,
guix-commits <=
- 06/91: gnu: python-mutagen: Move to pyproject-build-system., guix-commits, 2024/05/23
- 07/91: gnu: python-http-ece: Update to 1.2.0., guix-commits, 2024/05/23
- 10/91: gnu: vdirsyncer: Move to pyproject-build-system and enable tests., guix-commits, 2024/05/23
- 11/91: gnu: python-django-localflavor: Move to pyproject-build-system., guix-commits, 2024/05/23
- 16/91: gnu: qtile: Update to 0.23.0., guix-commits, 2024/05/23
- 18/91: gnu: sshuttle: Move to pyproject-build-system., guix-commits, 2024/05/23
- 19/91: gnu: python-apiron: Move to pyproject-build-system., guix-commits, 2024/05/23
- 40/91: gnu: python-flask-login: Move to pyproject-build-system., guix-commits, 2024/05/23
- 28/91: gnu: zulip-term: Move to pyproject-build-system., guix-commits, 2024/05/23
- 48/91: gnu: python-pytest-remotedata: Ignore failing test., guix-commits, 2024/05/23