aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-timezonefinder/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-timezonefinder/APKBUILD')
-rw-r--r--community/py3-timezonefinder/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/py3-timezonefinder/APKBUILD b/community/py3-timezonefinder/APKBUILD
new file mode 100644
index 0000000000..8ad353699d
--- /dev/null
+++ b/community/py3-timezonefinder/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=py3-timezonefinder
+pkgver=5.2.0
+pkgrel=1
+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"