aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-geotiler/APKBUILD
blob: caa422764cbfb1932972c7b2d0474618a45f8c9a (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-geotiler
_pkgorig=geotiler
pkgver=0.14.6
pkgrel=4
pkgdesc="GeoTiler is a library to create map using tiles from a map provider"
url="https://github.com/wrobell/geotiler"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	python3
	py3-aiohttp
	py3-cytoolz
	py3-pillow
	py3-setuptools
	"
checkdepends="
	python3-dev
	py3-numpy
	py3-pytest
	py3-pytest-cov
	"
makedepends="
	py3-build
	py3-installer
	py3-wheel
	"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/g/geotiler/geotiler-$pkgver.tar.gz
	remove-dep.patch"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 -m build --wheel --no-isolation
}

check() {
	python3 -m pytest
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl

	rm -r "$pkgdir"/usr/lib/python3.*/site-packages/geotiler/tests
}

sha512sums="
744bfe66a8d1070d66708f0eb5f7d88e95ab572f7b71f542fd8ca2736a09d87bc097c0a04aab9406c8a2bdabeb66c45b922e0be6d86f37c8c110ff8960fdc68b  py3-geotiler-0.14.6.tar.gz
a003493f1785b70c079c47c65eb35e2c62c76711b7db730ea28bd8ba41e01f011233f6efd9327f97f896c2cb3a1e1f55a071adecc360ced4953e0a9f3d77cb31  remove-dep.patch
"