[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/34: gnu: Add python-kanon.
From: |
guix-commits |
Subject: |
27/34: gnu: Add python-kanon. |
Date: |
Tue, 30 Jul 2024 05:36:48 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit 82c9302be0069084d494da5a2dff9c31151ba263
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Jul 2 21:23:28 2024 +0100
gnu: Add python-kanon.
* gnu/packages/astronomy.scm (python-kanon): New variable.
Change-Id: Ibff5d7b92f819c41bfb7f6b76e73c5815c8f3cae
---
gnu/packages/astronomy.scm | 83 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 83 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index e8a1f52f26..fa832ee93f 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2381,6 +2381,89 @@ of dates.")
@url{Helioviewer API, https://api.helioviewer.org/docs/v2/}.")
(license license:bsd-2)))
+(define-public python-kanon
+ (package
+ (name "python-kanon")
+ (version "0.6.6")
+ (source
+ (origin
+ (method git-fetch) ; no release in PyPI
+ (uri (git-reference
+ (url "https://github.com/ALFA-project-erc/kanon")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0sg9yrsas5xmhbw6mhfyxsxh9i060af6v02whr9fqgv687fiyrhc"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list ;"--numprocesses" "auto"
+ ;; XXX: This tests failing a lot.
+ "-k" (string-append "not test_attribute_forwardin"
+ " and not test_declination"
+ " and not test_init_basedquantity"
+ " and not test_ptolemy_viz"
+ " and not test_ptolemy_viz"
+ " and not test_quantity"
+ " and not test_read"
+ " and not test_shifting"
+ " and not test_sun_true_position"
+ " and not test_sun_true_position")
+ "--ignore=kanon/tables/__init__.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; See <https://github.com/ALFA-project-erc/kanon/issues/149>.
+ (delete 'sanity-check)
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("version = \"0.0.0\"") (string-append "version = \""
#$version "\""))
+ ;; RuntimeError: Unable to detect version control
+ ;; system. Checked: Git. Not installed: Mercurial, Darcs,
+ ;; Subversion, Bazaar, Fossil, Pijul. See
+ ;; <https://github.com/blacklanternsecurity/bbot/issues/1257>.
+ (("enable = true") "enable = false"))))
+ (add-before 'check 'prepare-test-environment
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list git-minimal
+ python-poetry-core
+ python-poetry-dynamic-versioning
+ python-pytest-astropy
+ python-pytest-xdist
+ python-requests-mock))
+ (propagated-inputs
+ (list python-astropy
+ python-matplotlib
+ python-numpy
+ python-pandas-1
+ python-requests
+ python-scipy
+ ;; Optional
+ python-ipykernel
+ python-papermill))
+ (home-page "https://dishas.obspm.fr")
+ (synopsis "History of astronomy")
+ (description "This package provides a history of astronomy library.
+Current Features:
+@itemize
+@item define standard positional numeral systems with standard arithmetics
+(BasedReal)
+@item set your own precision contexts and algorithms on arithmetical
+operations (PrecisionContext)
+@item keep track of all operations
+@item build or import ancient astronomical tables
+@item perform arithmetical and statistical operations
+@item support for BasedReal values
+@item define new calendar types
+@item date conversions
+@item collection of mathematical models used for all kinds of geocentric
+astronomical tables
+@end itemize")
+ (license license:bsd-3)))
+
(define-public python-mpl-animators
(package
(name "python-mpl-animators")
- 09/34: gnu: python-astropy-iers-data: Update to 0.2024.7.15.0.31.42., (continued)
- 09/34: gnu: python-astropy-iers-data: Update to 0.2024.7.15.0.31.42., guix-commits, 2024/07/30
- 32/34: gnu: Add python-glue-core., guix-commits, 2024/07/30
- 03/34: gnu: cfitsio: Update to 4.4.1., guix-commits, 2024/07/30
- 21/34: gnu: python-stdatamodels: Update to 2.0.0., guix-commits, 2024/07/30
- 15/34: gnu: python-extension-helpers: Update to 1.1.1., guix-commits, 2024/07/30
- 04/34: gnu: skymaker: Update to 3.10.5., guix-commits, 2024/07/30
- 07/34: gnu: python-asdf: Update to 3.3.0., guix-commits, 2024/07/30
- 08/34: gnu: python-asdf-zarr: Update to 0.0.4., guix-commits, 2024/07/30
- 06/34: gnu: stellarium: Update to 24.2., guix-commits, 2024/07/30
- 01/34: gnu: Add python-pluggy-next., guix-commits, 2024/07/30
- 27/34: gnu: Add python-kanon.,
guix-commits <=
- 33/34: gnu: Add python-looseversion., guix-commits, 2024/07/30
- 14/34: gnu: python-photutils: Update to 1.13.0., guix-commits, 2024/07/30
- 30/34: gnu: Add python-echo., guix-commits, 2024/07/30
- 20/34: gnu: python-stpipe: Improve indentation., guix-commits, 2024/07/30
- 17/34: gnu: python-pytest-openfiles: Update to 0.6.0., guix-commits, 2024/07/30
- 22/34: gnu: python-sunpy: Update to 5.1.5., guix-commits, 2024/07/30
- 28/34: gnu: Add python-ads., guix-commits, 2024/07/30
- 29/34: gnu: Add python-sbpy., guix-commits, 2024/07/30
- 31/34: gnu: Add python-mpl-scatter-density., guix-commits, 2024/07/30
- 13/34: gnu: python-jwst: Update to 1.15.1., guix-commits, 2024/07/30