dev-python/jplephem: add 2.22

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman 2024-07-01 17:01:54 +02:00
parent fe65405261
commit 4ac701d3bf
No known key found for this signature in database
GPG Key ID: FFAD0D85E1A0C8D7
3 changed files with 47 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST jplephem-2.21.tar.gz 44359 BLAKE2B 53e816f9eb6ffed8635cd93b4ca68d904c130af2e2dcfcae58c0575ad11c0269487cef1eb73934184c84773387f18ba2eec7c850a383757cf7be649fd5a2e8f6 SHA512 1cd8df8c96dd6bdd73b2615cc78fcf845d2d6d44daa99754662e2449e2c185052983056a9f0de11bfce390cc6c09a798b2ad1908b3eb0bca113e8c0ba16445e2
DIST jplephem-2.22.gh.tar.gz 59000132 BLAKE2B 1ddd9a911698530e134383491a30df12491dea61d7a3f1d1d41eee3c2cb239bd2da261c543c62c766675d1be94d7c10bc7fbbcc4dbfb7c6cb710b77bdaffadbf SHA512 5ed8f6e071d1cd1d3ee394d3c7aa000ac3163abce0b324072f795cd9ff5e6e55aaa23bdeacbca78ec8e6dd9acc378e5daa923953e0a4387867772a1abae77952

View File

@ -0,0 +1,13 @@
If numpy version has a suffix it will break
diff --git a/jplephem/test.py b/jplephem/test.py
index 660d5b5..b50cef2 100644
--- a/jplephem/test.py
+++ b/jplephem/test.py
@@ -515,6 +515,7 @@ File type DAF/SPK and format LTL-IEEE with 15 segments:
def load_tests(loader, tests, ignore):
"""Run our main documentation as a test."""
+ return tests
# If we are running in CI, where we test against an old version of
# NumPy, skip the doctests since NumPy will print whitespace

View File

@ -0,0 +1,33 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11,12} )
inherit distutils-r1
DESCRIPTION="Python version of NASA DE4xx ephemerides for Astronomical Alamanac"
HOMEPAGE="https://pypi.org/project/jplephem/"
SRC_URI="https://github.com/brandon-rhodes/python-jplephem/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/python-${P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${PN}-fix-numpy-compat.patch" )
distutils_enable_tests unittest
python_test() {
cd ci || die
eunittest .
}