[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70855] [PATCH 04/92] gnu: python-isort: Move to pyproject-build-sys
From: |
Nicolas Graves |
Subject: |
[bug#70855] [PATCH 04/92] gnu: python-isort: Move to pyproject-build-system. |
Date: |
Fri, 10 May 2024 00:52:59 +0200 |
* gnu/packages/python-xyz.scm (python-isort):
[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 862efc0f5b5..c4b37270668 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24322,19 +24322,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)
@@ -24348,15 +24342,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#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, 2024/05/09
- [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 <=
- [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
- [bug#70855] [PATCH 06/92] gnu: python-mutagen: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 08/92] gnu: python-zope-i18nmessageid: Update to 5.1.1., Nicolas Graves, 2024/05/09