gnu: python-pynbody: Update to 1.3.1.

* gnu/packages/astronomy.scm (python-pynbody): Update to 1.3.1.
[build-system]: Switch to pyproject-build-system.
[arguments]: Do not override the 'check phase and remove custom
'disable-tests-require-testdata phase, specify #:test-flags.

Signed-off-by: Vinicius Monego <monego@posteo.net>
This commit is contained in:
Sharlatan Hellseher 2023-05-24 22:51:47 +01:00 committed by Vinicius Monego
parent d6e587e11d
commit 740ebec5aa
No known key found for this signature in database
GPG Key ID: 637B0B138065B68A

View File

@ -2601,55 +2601,44 @@ functions, so that they can be called with scalar or array inputs.")
(define-public python-pynbody (define-public python-pynbody
(package (package
(name "python-pynbody") (name "python-pynbody")
(version "1.2.3") (version "1.3.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pynbody" version)) (uri (pypi-uri "pynbody" version))
(sha256 (sha256
(base32 "1jxwk2s4qz1znvyak2lj7ld01kl1jh87xp81ki7a8dz1gcy93fkx")))) (base32 "1yp7ja66zqmbnh7bbwbyimxq1nkrmjrcif2rzfm1hswm0fp2fbga"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list #:phases (list #:test-flags #~(list
#~(modify-phases %standard-phases ;; Disable tests which need to download additional
(add-after 'unpack 'disable-tests-require-testdata ;; 1.0GiB+ of test data archive from
(lambda _ ;; http://star.ucl.ac.uk/~app/testdata.tar.gz
;; Disable tests which need to download additional 1.0GiB+ ;; https://github.com/pynbody/pynbody/blob/ \
;; of test data archive from ;; f4bd482dc47532831b3ec115c7cb07149d61bfc5/ \
;; http://star.ucl.ac.uk/~app/testdata.tar.gz ;; .github/workflows/build-test.yaml#L41
;; https://github.com/pynbody/pynbody/blob/ \ "--ignore=tests/gravity_test.py"
;; f4bd482dc47532831b3ec115c7cb07149d61bfc5/ \ "--ignore=tests/adaptahop_test.py"
;; .github/workflows/build-test.yaml#L41 "--ignore=tests/ahf_halos_test.py"
(with-directory-excursion "tests" "--ignore=tests/array_test.py"
(for-each delete-file "--ignore=tests/bridge_test.py"
'("gravity_test.py" "--ignore=tests/family_test.py"
"adaptahop_test.py" "--ignore=tests/partial_tipsy_test.py"
"ahf_halos_test.py" "--ignore=tests/snapshot_test.py"
"array_test.py" "--ignore=tests/test_profile.py"
"bridge_test.py" "--ignore=tests/gadget_test.py"
"family_test.py" "--ignore=tests/gadgethdf_test.py"
"partial_tipsy_test.py" "--ignore=tests/grafic_test.py"
"snapshot_test.py" "--ignore=tests/halotools_test.py"
"test_profile.py" "--ignore=tests/nchilada_test.py"
"gadget_test.py" "--ignore=tests/ramses_new_ptcl_format_test.py"
"gadgethdf_test.py" "--ignore=tests/ramses_test.py"
"grafic_test.py" "--ignore=tests/rockstar_test.py"
"halotools_test.py" "--ignore=tests/sph_image_test.py"
"nchilada_test.py" "--ignore=tests/sph_smooth_test.py"
"ramses_new_ptcl_format_test.py" "--ignore=tests/subfind_test.py"
"ramses_test.py" "--ignore=tests/subfindhdf_gadget4_test.py"
"rockstar_test.py" "--ignore=tests/tipsy_test.py")))
"sph_image_test.py"
"sph_smooth_test.py"
"subfind_test.py"
"subfindhdf_gadget4_test.py"
"tipsy_test.py")))))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(setenv "HOME" "/tmp")
(invoke "pytest" "-vv")))))))
(native-inputs (native-inputs
(list python-cython (list python-cython
python-pandas python-pandas