diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2024-05-10 00:52:59 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-13 20:18:47 +0000 |
commit | 910d1e5d070ddbb3fe49587eff5815552c1bcbb0 (patch) | |
tree | 3b078ac52a68c6bc8c915785ed09cdd14f6a8cd3 | |
parent | 4e4b54700583e42d928f8b61ca535c5dc1aa6e14 (diff) | |
download | guix-910d1e5d070ddbb3fe49587eff5815552c1bcbb0.tar.gz guix-910d1e5d070ddbb3fe49587eff5815552c1bcbb0.zip |
gnu: python-isort: Move to pyproject-build-system.
* 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
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r-- | gnu/packages/python-xyz.scm | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 612d617115..9a4698be1a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25093,19 +25093,13 @@ package attempts to address the shortcomings of @code{isodate}.") (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) @@ -25119,15 +25113,7 @@ package attempts to address the shortcomings of @code{isodate}.") (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 |