[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: |
Thu, 21 Nov 2024 06:29:06 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 8fac5c76198fc475afd80819594c1b11ff5a63f2
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
- 83/361: gnu: python-pytest-tornasync: Use Tornado 6., (continued)
- 83/361: gnu: python-pytest-tornasync: Use Tornado 6., guix-commits, 2024/11/21
- 85/361: gnu: python-pyzmq: Use Tornado 6., guix-commits, 2024/11/21
- 108/361: gnu: python-openapi-spec-validator: Update to 0.7.1., guix-commits, 2024/11/21
- 97/361: gnu: Add python-jupyter-server-terminals., guix-commits, 2024/11/21
- 109/361: gnu: python-cattrs: Update to 23.2.3., guix-commits, 2024/11/21
- 105/361: gnu: python-sparqlkernel: Patch install script., guix-commits, 2024/11/21
- 106/361: gnu: Add python-pathable., guix-commits, 2024/11/21
- 119/361: gnu: Add python-whatthepatch., guix-commits, 2024/11/21
- 141/361: gnu: python-mutagen: Move to pyproject-build-system., guix-commits, 2024/11/21
- 137/361: gnu: python-transient: Move to pyproject-build-system., guix-commits, 2024/11/21
- 138/361: gnu: python-black: Move to pyproject-build-system.,
guix-commits <=
- 143/361: gnu: python-zope-i18nmessageid: Update to 5.1.1., guix-commits, 2024/11/21
- 140/361: gnu: python-codespell: Improve package style., guix-commits, 2024/11/21
- 160/361: gnu: dynaconf: Improve package style., guix-commits, 2024/11/21
- 173/361: gnu: python-parse-type: Move to pyproject-build-system., guix-commits, 2024/11/21
- 251/361: gnu: behave: Update to 1.2.7.dev5., guix-commits, 2024/11/21
- 253/361: gnu: python-pooch: Adjust inputs., guix-commits, 2024/11/21
- 254/361: gnu: python-pycollada: Adjust inputs., guix-commits, 2024/11/21
- 256/361: gnu: python-sphinx-autodoc-typehints: Update to 1.23.0., guix-commits, 2024/11/21
- 276/361: gnu: python-accupy: Adjust inputs., guix-commits, 2024/11/21
- 295/361: gnu: python-distributed: Adjust inputs., guix-commits, 2024/11/21