[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/20: gnu: python-pynbody: Update to 1.3.1.
From: |
guix-commits |
Subject: |
13/20: gnu: python-pynbody: Update to 1.3.1. |
Date: |
Thu, 25 May 2023 20:39:54 -0400 (EDT) |
monego pushed a commit to branch master
in repository guix.
commit 740ebec5aac6e0d4c3634d10b4631938734b9bb0
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed May 24 22:51:47 2023 +0100
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>
---
gnu/packages/astronomy.scm | 75 ++++++++++++++++++++--------------------------
1 file changed, 32 insertions(+), 43 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 5c98c6a067..4f80e77857 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2601,55 +2601,44 @@ functions, so that they can be called with scalar or
array inputs.")
(define-public python-pynbody
(package
(name "python-pynbody")
- (version "1.2.3")
+ (version "1.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pynbody" version))
(sha256
- (base32 "1jxwk2s4qz1znvyak2lj7ld01kl1jh87xp81ki7a8dz1gcy93fkx"))))
- (build-system python-build-system)
+ (base32 "1yp7ja66zqmbnh7bbwbyimxq1nkrmjrcif2rzfm1hswm0fp2fbga"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'disable-tests-require-testdata
- (lambda _
- ;; Disable tests which need to download additional 1.0GiB+
- ;; of test data archive from
- ;; http://star.ucl.ac.uk/~app/testdata.tar.gz
- ;; https://github.com/pynbody/pynbody/blob/ \
- ;; f4bd482dc47532831b3ec115c7cb07149d61bfc5/ \
- ;; .github/workflows/build-test.yaml#L41
- (with-directory-excursion "tests"
- (for-each delete-file
- '("gravity_test.py"
- "adaptahop_test.py"
- "ahf_halos_test.py"
- "array_test.py"
- "bridge_test.py"
- "family_test.py"
- "partial_tipsy_test.py"
- "snapshot_test.py"
- "test_profile.py"
- "gadget_test.py"
- "gadgethdf_test.py"
- "grafic_test.py"
- "halotools_test.py"
- "nchilada_test.py"
- "ramses_new_ptcl_format_test.py"
- "ramses_test.py"
- "rockstar_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")))))))
+ (list #:test-flags #~(list
+ ;; Disable tests which need to download additional
+ ;; 1.0GiB+ of test data archive from
+ ;; http://star.ucl.ac.uk/~app/testdata.tar.gz
+ ;; https://github.com/pynbody/pynbody/blob/ \
+ ;; f4bd482dc47532831b3ec115c7cb07149d61bfc5/ \
+ ;; .github/workflows/build-test.yaml#L41
+ "--ignore=tests/gravity_test.py"
+ "--ignore=tests/adaptahop_test.py"
+ "--ignore=tests/ahf_halos_test.py"
+ "--ignore=tests/array_test.py"
+ "--ignore=tests/bridge_test.py"
+ "--ignore=tests/family_test.py"
+ "--ignore=tests/partial_tipsy_test.py"
+ "--ignore=tests/snapshot_test.py"
+ "--ignore=tests/test_profile.py"
+ "--ignore=tests/gadget_test.py"
+ "--ignore=tests/gadgethdf_test.py"
+ "--ignore=tests/grafic_test.py"
+ "--ignore=tests/halotools_test.py"
+ "--ignore=tests/nchilada_test.py"
+ "--ignore=tests/ramses_new_ptcl_format_test.py"
+ "--ignore=tests/ramses_test.py"
+ "--ignore=tests/rockstar_test.py"
+ "--ignore=tests/sph_image_test.py"
+ "--ignore=tests/sph_smooth_test.py"
+ "--ignore=tests/subfind_test.py"
+ "--ignore=tests/subfindhdf_gadget4_test.py"
+ "--ignore=tests/tipsy_test.py")))
(native-inputs
(list python-cython
python-pandas
- 07/20: gnu: python-ccdproc: Enable tests., (continued)
- 07/20: gnu: python-ccdproc: Enable tests., guix-commits, 2023/05/25
- 06/20: gnu: python-sgp4: Update to 2.22., guix-commits, 2023/05/25
- 11/20: gnu: python-astropy-healpix: Switch to pyproject-build-system., guix-commits, 2023/05/25
- 03/20: gnu: python-gwcs: Update to 0.18.3., guix-commits, 2023/05/25
- 02/20: gnu: python-asdf-wcs-schemas: Switch to pyproject-build-system., guix-commits, 2023/05/25
- 12/20: gnu: python-astroquery: Use G-Expressions., guix-commits, 2023/05/25
- 01/20: gnu: python-asdf-astropy: Update to 0.4.0., guix-commits, 2023/05/25
- 10/20: gnu: python-fitsio: Use G-Expressions., guix-commits, 2023/05/25
- 16/20: gnu: python-photutils: Update to 1.7.0., guix-commits, 2023/05/25
- 18/20: gnu: python-asdf: Update to 2.15.0., guix-commits, 2023/05/25
- 13/20: gnu: python-pynbody: Update to 1.3.1.,
guix-commits <=
- 15/20: gnu: python-poppy: Update to 1.1.1., guix-commits, 2023/05/25
- 17/20: gnu: python-ephem: Update to 4.1.4., guix-commits, 2023/05/25
- 19/20: gnu: python-asdf-coordinates-schemas: Update to 0.2.0., guix-commits, 2023/05/25
- 20/20: gnu: python-asdf: Enable tests., guix-commits, 2023/05/25