[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70739] [PATCH 023/714] gnu: python-black: Improve package style.
From: |
Nicolas Graves |
Subject: |
[bug#70739] [PATCH 023/714] gnu: python-black: Improve package style. |
Date: |
Fri, 3 May 2024 18:55:22 +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 a8979dfdc0..d4381ae4d2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7965,22 +7965,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#70748] [PATCH 013/714] gnu: python-pydantic-cli: Remove python-black native-input., (continued)
- [bug#70748] [PATCH 013/714] gnu: python-pydantic-cli: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70749] [PATCH 014/714] gnu: python-imageio: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70750] [PATCH 015/714] gnu: python-isort: Improve package style., Nicolas Graves, 2024/05/03
- [bug#70751] [PATCH 016/714] gnu: python-imageio: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70753] [PATCH 017/714] gnu: python-minikanren: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70754] [PATCH 018/714] gnu: python-eliot: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70755] [PATCH 019/714] gnu: python-update-checker: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70758] [PATCH 022/714] gnu: scvelo: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70757] [PATCH 021/714] gnu: python-liana-py: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70756] [PATCH 020/714] gnu: python-doubletdetection: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 023/714] gnu: python-black: Improve package style.,
Nicolas Graves <=
- [bug#70739] [PATCH 024/714] gnu: calibre: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 025/714] gnu: mdpo: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 026/714] gnu: python-apprise: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 029/714] gnu: python-pyls-black: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 028/714] gnu: python-pymd4c: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 027/714] gnu: python-colorful: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 030/714] gnu: python-pypugjs: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 031/714] gnu: python-docx: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 032/714] gnu: python-importlib-resources: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70739] [PATCH 033/714] gnu: python-jaraco-test: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03