diff options
Diffstat (limited to 'community/py3-timezonefinder/APKBUILD')
-rw-r--r-- | community/py3-timezonefinder/APKBUILD | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/community/py3-timezonefinder/APKBUILD b/community/py3-timezonefinder/APKBUILD index 821a123af76..d83402aebd3 100644 --- a/community/py3-timezonefinder/APKBUILD +++ b/community/py3-timezonefinder/APKBUILD @@ -1,34 +1,52 @@ # Contributor: Bart Ribbers <bribbers@disroot.org> # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=py3-timezonefinder -pkgver=5.2.0 -pkgrel=2 +pkgver=6.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" -arch="noarch" +url="https://github.com/jannikmi/timezonefinder" +arch="all" license="MIT" depends=" + py3-h3 py3-numpy - python3 " -makedepends="py3-setuptools" +makedepends=" + py3-cffi + py3-gpep517 + py3-poetry-core + py3-setuptools + py3-wheel + python3-dev + " checkdepends=" py3-pytest py3-pytest-cov " -source="https://pypi.python.org/packages/source/t/timezonefinder/timezonefinder-$pkgver.tar.gz" +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://github.com/jannikmi/timezonefinder/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/timezonefinder-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - PYTHONPATH="$PWD/build/lib" pytest + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + + # Tests require "timezonefinder" to be present in the path" + export PATH="$PATH:$PWD/.testenv/bin" + .testenv/bin/python3 -m pytest -k "not test_inside_polygon" } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="94da76328aa95d72c886c5b3e8a07d9044c032c500bbc3d88f6739f463e32a66a9246f988c4123e3ebc446b543f3ca1270b18d22d90569b4945dc478f02cad48 timezonefinder-5.2.0.tar.gz" +sha512sums=" +38d36e6c117ed55d7cea1cccc954e4b721a17f9914108cf4d1d204c8d0a101913837cef7a1fe1f1c1a918119babcff231a1f5040e01c6dd89f958bdcfc549fb4 py3-timezonefinder-6.2.0.tar.gz +" |