mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 07:27:48 -05:00
gnu: python-isort: Use gexps.
* gnu/packages/python-xyz.scm (python-isort) [arguments]: Use gexps. Delete extraneous add-installed-pythonpath call in check phase.
This commit is contained in:
parent
2e6da431e2
commit
52e8f4d426
1 changed files with 33 additions and 34 deletions
|
@ -20297,17 +20297,17 @@ (define-public python-isort
|
|||
"1vbwc4gpffclf6hw08lvvgqlvsgfjlw7gjsm28jfcrln2pixla7j"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'build
|
||||
(lambda _
|
||||
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out"))
|
||||
(whl (car (find-files "dist" "\\.whl$"))))
|
||||
(lambda _
|
||||
(let ((whl (car (find-files "dist" "\\.whl$"))))
|
||||
(invoke "pip" "--no-cache-dir" "--no-input"
|
||||
"install" "--no-deps" "--prefix" out whl))))
|
||||
"install" "--no-deps" "--prefix" #$output whl))))
|
||||
(add-after 'install 'install-example-plugins
|
||||
(lambda _
|
||||
(for-each (lambda (source-directory)
|
||||
|
@ -20325,9 +20325,8 @@ (define-public python-isort
|
|||
(replace 'check
|
||||
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||
(when tests?
|
||||
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
||||
(let ((bin (string-append #$output "/bin")))
|
||||
(setenv "PATH" (string-append (getenv "PATH") ":" bin)))
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "pytest" "-vv" "tests/unit/"
|
||||
"-k" "not test_gitignore" ;requires git
|
||||
"--ignore=tests/unit/test_deprecated_finders.py")))))))
|
||||
|
|
Loading…
Reference in a new issue