[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70855] [PATCH 03/92] gnu: python-black: Move to pyproject-build-sys
From: |
Nicolas Graves |
Subject: |
[bug#70855] [PATCH 03/92] gnu: python-black: Move to pyproject-build-system. |
Date: |
Fri, 10 May 2024 00:52:58 +0200 |
* 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
---
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 c1590c2b568..862efc0f5b5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8262,22 +8262,16 @@ (define-public python-black
(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
--
2.41.0
- [bug#70855] [PATCH 00/92] python-team patches, Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 01/92] gnu: python-seaborn: Correct dependencies., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 02/92] gnu: python-transient: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 03/92] gnu: python-black: Move to pyproject-build-system.,
Nicolas Graves <=
- [bug#70855] [PATCH 07/92] gnu: python-http-ece: Update to 1.2.0., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 04/92] gnu: python-isort: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 16/92] gnu: qtile: Update to 0.23.0., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 10/92] gnu: vdirsyncer: Move to pyproject-build-system and enable tests., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 17/92] gnu: qtile: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 09/92] gnu: python-aionotify: Update to 0.3.0., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 12/92] gnu: python-docker-pycreds: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 21/92] gnu: conda: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 13/92] gnu: Add xcffibgen., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 05/92] gnu: python-codespell: Improve package style., Nicolas Graves, 2024/05/09