[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/28: gnu: python-spherical-geometry: Enable tests.
From: |
guix-commits |
Subject: |
10/28: gnu: python-spherical-geometry: Enable tests. |
Date: |
Sun, 5 Nov 2023 13:16:29 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit 0d7e51d8ee94b0a56e48bc0d301ade965857f38a
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Oct 27 23:14:47 2023 +0100
gnu: python-spherical-geometry: Enable tests.
* gnu/packages/astronomy.scm (python-spherical-geometry): Enable tests.
[build-system]: Switch to pyproject-build-system.
[arguments]{phases}: Add 'build-extensions phase.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/astronomy.scm | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index b69ba4d96a..f902c0da63 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2601,19 +2601,22 @@ of axis order, spatial projections, and spectral units
that exist in the wild.
(file-name (git-file-name name version))
(sha256
(base32 "0kzcncqir4v7nhk9lxj9gxr32p3krkaqa58y2i4kksgxxy24qw4z"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
- ;; NOTE: (Sharlatan-20220523T231348+0100): Tests depends on old Python2
- ;; libarry `sphere'
- #:tests? #f
+ ;; XXX: Disable one failing test
+ ;; See https://github.com/spacetelescope/spherical_geometry/issues/252
+ #:test-flags #~(list "-k" "not test_overlap")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'preparations
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
;; Use our own libraries in place of bundles.
- (setenv "USE_SYSTEM_QD" "1"))))))
+ (setenv "USE_SYSTEM_QD" "1")))
+ (add-before 'check 'build-extensions
+ (lambda _
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs
(list python-pytest
python-setuptools-scm))
- branch master updated (1eb3133355 -> 286639c9af), guix-commits, 2023/11/05
- 03/28: gnu: Remove dunst.scm., guix-commits, 2023/11/05
- 07/28: gnu: glnemo2: Fix home-page., guix-commits, 2023/11/05
- 09/28: gnu: python-spherical-geometry: Simplify package., guix-commits, 2023/11/05
- 10/28: gnu: python-spherical-geometry: Enable tests.,
guix-commits <=
- 11/28: gnu: python-pynbody: Update to 1.4.1., guix-commits, 2023/11/05
- 12/28: gnu: python-cdflib: Update to 1.2.2., guix-commits, 2023/11/05
- 16/28: gnu: libxisf: Update to 0.2.10., guix-commits, 2023/11/05
- 01/28: lint: Speed up the formatting linter., guix-commits, 2023/11/05
- 02/28: gnu: dunst: Update to 1.9.2., guix-commits, 2023/11/05
- 04/28: doc: contributing: Replace reference to dunst.scm., guix-commits, 2023/11/05
- 05/28: gnu: sbcl-cl-webkit: Update to 3.5.10., guix-commits, 2023/11/05
- 06/28: gnu: font-google-noto: Update to 23.11.1., guix-commits, 2023/11/05
- 08/28: gnu: imppg: Use standard configure phase., guix-commits, 2023/11/05
- 13/28: gnu: python-astroalign: Update to 2.5.0., guix-commits, 2023/11/05