aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-timezonefinder/APKBUILD
blob: e454fc69b438ed798e47fed290054f63e7cd4b06 (plain) (blame)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-timezonefinder
pkgver=5.1.1
pkgrel=0
pkgdesc="Fast python package for finding the timezone of any point on earth (coordinates) offline"
url="https://github.com/MrMinimal64/timezonefinder"
arch="noarch !mips64" # blocked by py3-numpy
license="MIT"
depends="
	py3-numpy
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-pytest
	py3-pytest-cov
	"
source="https://pypi.python.org/packages/source/t/timezonefinder/timezonefinder-$pkgver.tar.gz"
builddir="$srcdir/timezonefinder-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="9b65b261fa268cc51e9fe8db28740f88a00d402dca40fd68f64dad0d3a2701a6926d344237a9ad8acea30511f6c92018c5fd6ea1ea1e780b9258fe45117013bb  timezonefinder-5.1.1.tar.gz"