# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-astral _pkgname=astral pkgver=1.10.1 pkgrel=3 pkgdesc="Calculations for the position of the sun and moon" url="https://pypi.python.org/pypi/astral" arch="noarch" license="Apache-2.0" depends="py3-requests py3-tz python3" makedepends="py3-setuptools" checkdepends="py3-pytest" source="$_pkgname-$pkgver.tar.gz::https://github.com/sffjunkie/astral/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces=py-astral # Backwards compatibility provides=py-astral=$pkgver-r$pkgrel # Backwards compatibility build() { python3 setup.py build } check() { # skip the webtest since we lack an API key py.test-3 -v -m "not webtest" } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="f76e6297ecb51d8ec536018ad633e96b645cca779d1a67af5c71dcffef23bc73c1ad0543b2a7b1faeb10e5777b4afb68bc2c0f589b34e44a09c168adf4b72e15 astral-1.10.1.tar.gz"