mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-halotools: Update to 0.9.3.
* gnu/packages/astronomy.scm (python-halotools): Update to 0.9.3. [arguments] <phases>: Remove 'build-extensions and use custom 'check. Change-Id: Ia6ce0c7de0544c0a9ad071aa0ef5dd63ff57c544
This commit is contained in:
parent
58fe8c9708
commit
9ddd1861ae
1 changed files with 9 additions and 7 deletions
|
@ -2830,23 +2830,25 @@ default) to world coordinates.")
|
||||||
(define-public python-halotools
|
(define-public python-halotools
|
||||||
(package
|
(package
|
||||||
(name "python-halotools")
|
(name "python-halotools")
|
||||||
(version "0.9.2")
|
(version "0.9.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "halotools" version))
|
(uri (pypi-uri "halotools" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1fa4w8dabr0zx6xwnrdwdipf4s6sg7q25jmq42n9q8n64kjx60vb"))))
|
(base32 "004nqlyiv6gyzmjk840a1hl3j4sgi5xwbfibankwi7281gq4hx3d"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
;; Tests are shaky in parallel.
|
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'check 'build-extensions
|
;; Use built library for tests.
|
||||||
(lambda _
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(with-directory-excursion #$output
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
|
(apply invoke "pytest" "-vv" test-flags))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-cython-3
|
(list python-cython-3
|
||||||
python-extension-helpers
|
python-extension-helpers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue