[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70735] [PATCH 015/714] gnu: python-isort: Improve package style.
From: |
Nicolas Graves |
Subject: |
[bug#70735] [PATCH 015/714] gnu: python-isort: Improve package style. |
Date: |
Sat, 4 May 2024 00:18:17 +0200 |
* gnu/packages/python-xyz.scm (python-isort): Improve package style.
[build-system]: Move to pyproject-build-system.
[arguments]<#:test-flags>: Add option to replace former check phase.
<#:phases>: Remove phases build, install and check.
Change-Id: Idac8f151977f2494eb44d51aa1fcbf3156b5cc87
---
gnu/packages/python-xyz.scm | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2c81cd2d51..8be0040220 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23654,19 +23654,13 @@ (define-public python-isort
(sha256
(base32
"1vbwc4gpffclf6hw08lvvgqlvsgfjlw7gjsm28jfcrln2pixla7j"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
+ #:test-flags '(list "tests/unit/" "-k" "not test_gitignore"
+ "--ignore=tests/unit/test_deprecated_finders.py")
#:phases
#~(modify-phases %standard-phases
- (replace 'build
- (lambda _
- (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
- (replace 'install
- (lambda _
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl))))
(add-after 'install 'install-example-plugins
(lambda _
(for-each (lambda (source-directory)
@@ -23680,15 +23674,7 @@ (define-public python-isort
(setenv "HOME" (getcwd))
(let ((example-whls (find-files "dist" "^example.*\\.whl$")))
(apply invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--user" "--no-deps" example-whls))))
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (let ((bin (string-append #$output "/bin")))
- (setenv "PATH" (string-append (getenv "PATH") ":" bin)))
- (invoke "pytest" "-vv" "tests/unit/"
- "-k" "not test_gitignore" ;requires git
- "--ignore=tests/unit/test_deprecated_finders.py")))))))
+ "install" "--user" "--no-deps" example-whls)))))))
(native-inputs
(list python-black
python-colorama
--
2.41.0
- [bug#70735] [PATCH 013/714] gnu: python-pydantic-cli: Remove python-black native-input., (continued)
- [bug#70735] [PATCH 013/714] gnu: python-pydantic-cli: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 017/714] gnu: python-minikanren: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 019/714] gnu: python-update-checker: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 021/714] gnu: python-liana-py: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 026/714] gnu: python-apprise: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 031/714] gnu: python-docx: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 036/714] gnu: python-codespell: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 030/714] gnu: python-pypugjs: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 023/714] gnu: python-black: Improve package style., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 035/714] gnu: python-progressbar2: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 015/714] gnu: python-isort: Improve package style.,
Nicolas Graves <=
- [bug#70735] [PATCH 029/714] gnu: python-pyls-black: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 032/714] gnu: python-importlib-resources: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 027/714] gnu: python-colorful: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 025/714] gnu: mdpo: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 034/714] gnu: python-seaborn: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 020/714] gnu: python-doubletdetection: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 018/714] gnu: python-eliot: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 022/714] gnu: scvelo: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 024/714] gnu: calibre: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03
- [bug#70735] [PATCH 033/714] gnu: python-jaraco-test: Remove python-flake8 native-input., Nicolas Graves, 2024/05/03