mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 11:04:10 -04:00
dev-python/jplephem: add 2.24
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
41
dev-python/jplephem/jplephem-2.24.ebuild
Normal file
41
dev-python/jplephem/jplephem-2.24.ebuild
Normal file
@@ -0,0 +1,41 @@
|
||||
# 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_{12..14} )
|
||||
|
||||
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"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-fix-numpy-compat.patch" )
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Fix test_excerpt_command test
|
||||
sed -i 's/jplephem 2.23/jplephem 2.24/g' jplephem/test.py || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd ci || die
|
||||
eunittest .
|
||||
}
|
||||
Reference in New Issue
Block a user