blob: 1866b2724581ddd611f8281bf9191109470d342e (
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
28
29
30
31
32
33
34
|
# Maintainer: envolution
# Contributor: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-novas
_pyname=${pkgbase#python-}
pkgname=("python-${_pyname}")
pkgver=3.1.1.6
pkgrel=4
pkgdesc="The United States Naval Observatory NOVAS astronomy library"
arch=('i686' 'x86_64')
url="https://www.usno.navy.mil/USNO/astronomical-applications/software-products/novas"
optdepends=('python-novas_de405: high-accuracy ephemeris data set')
license=('custom')
depends=('python')
makedepends=(python-build python-installer python-wheel)
checkdepends=('python-novas_de405')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('50119749976aa47fdebf6b42c71f55db')
build() {
cd ${_pyname}-${pkgver}
python -m build --wheel --no-isolation
}
check() {
cd ${_pyname}-${pkgver}
python -m installer --destdir="test_build" dist/*.whl
pytest
}
package() {
cd ${_pyname}-${pkgver}
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README*
python -m installer --destdir="$pkgdir" dist/*.whl
}
|