aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-timezonefinder/APKBUILD
blob: 7e16a9b511e0e2d7b2e06f5a22d22170fb522f00 (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
35
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-timezonefinder
pkgver=5.2.0
pkgrel=0
pkgdesc="Fast python package for finding the timezone of any point on earth (coordinates) offline"
url="https://github.com/MrMinimal64/timezonefinder"
# mips blocked by py3-numpy
arch="noarch !mips64"
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="94da76328aa95d72c886c5b3e8a07d9044c032c500bbc3d88f6739f463e32a66a9246f988c4123e3ebc446b543f3ca1270b18d22d90569b4945dc478f02cad48  timezonefinder-5.2.0.tar.gz"