[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70489] [PATCH 31/47] gnu: python-skyfield: Enable tests.
From: |
Sharlatan Hellseher |
Subject: |
[bug#70489] [PATCH 31/47] gnu: python-skyfield: Enable tests. |
Date: |
Sun, 21 Apr 2024 00:22:20 +0100 |
* gnu/packages/astronomy.scm (python-skyfield): Enable tests.
[source]: Swap to git checkout containing test data.
[build-system]: Swap to pyproject-build-system.
[native-inputs]: Add python-assay and python-pandas.
Change-Id: Ia4604ab2e44860dcf1294688639d3c54881f8d8c
---
gnu/packages/astronomy.scm | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 15aa313c41..dbe589ee1a 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -5048,15 +5048,27 @@ (define-public python-skyfield
(version "1.48")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "skyfield" version))
+ (method git-fetch) ; PyPI tarball lacks test data
+ (uri (git-reference
+ (url "https://github.com/skyfielders/python-skyfield")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1qaz0k0lkni3y423r66mkvj99bx08qa9xgqp3cs2df70cmdz30cb"))))
- (build-system python-build-system)
+ (base32 "0l324r4pz7d5w72c7c5akvjx40287hl7sl0qv7swvn2da53vmq0r"))))
+ (build-system pyproject-build-system)
(arguments
- ;; XXX: Tests depend on custom test framework
- ;; https://github.com/brandon-rhodes/assay
- `(#:tests? #f))
+ (list
+ #:test-flags
+ #~(list "-m" "assay" "--batch" "skyfield.tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "ci"
+ (apply invoke "python" test-flags))))))))
+ (native-inputs
+ (list python-assay python-pandas))
(propagated-inputs
(list python-certifi
python-jplephem
--
2.41.0
- [bug#70489] [PATCH 18/47] gnu: python-stdatamodels: Update to 1.10.1., (continued)
- [bug#70489] [PATCH 18/47] gnu: python-stdatamodels: Update to 1.10.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 06/47] gnu: parfive: Update to 2.1.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 19/47] gnu: python-stsci-imagestats: Update to 1.8.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 21/47] gnu: python-synphot: Add custom check phase., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 20/47] gnu: python-stsci-image: Refresh package style., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 22/47] gnu: python-synphot: Update to 1.4.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 23/47] gnu: python-tweakwcs: Adjust indentation., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 32/47] gnu: python-sunpy: Update to 5.1.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 27/47] gnu: python-gatspy: Refresh package style., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 33/47] gnu: python-astroplan: Update to 0.10., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 31/47] gnu: python-skyfield: Enable tests.,
Sharlatan Hellseher <=
- [bug#70489] [PATCH 34/47] gnu: python-rad: Update to 0.19.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 30/47] gnu: Add python-assay., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 37/47] gnu: python-casa-formats-io: Update to 0.3.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 24/47] gnu: python-tweakwcs: Update to 0.8.7., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 05/47] gnu: python-pytest-socket: Update to 0.7.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 26/47] gnu: python-ginga: Set HOME for sanity check., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 25/47] gnu: python-ginga: Update to 5.0.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 29/47] gnu: python-bayesicfitting: Update to 3.2.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 36/47] gnu: python-roman-datamodels: Update to 0.19.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 38/47] gnu: python-specutils: Update to 1.14.0., Sharlatan Hellseher, 2024/04/20