aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-astral/APKBUILD
blob: 4f7fc1e860ee4d28d128955b91fe0cc457214795 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
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"