blob: c68b83b8b070200659e9d88b6c6d43577f10837b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Alex Hirzel <alex at hirzel period us>
pkgname='python-skyfield'
_name=${pkgname#python-}
pkgver='1.49'
pkgrel=1
pkgdesc="Elegant astronomy for Python"
url="https://rhodesmill.org/skyfield/"
depends=('python-astropy' 'python-certifi' 'python-jplephem' 'python-pandas' 'python-sgp4' 'python-sympy')
makedepends=('python-build' 'python-installer' 'python-wheel')
checkdepends=('python-mock' 'python-pytz')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('20883027b2bbf4017dd916b64faaeb3713a8f88d7c8e353c15cd030ac63be92c')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|