# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=py3-geoip2 pkgver=4.6.0 pkgrel=1 pkgdesc="API for the GeoIP2 web services and databases" options="!check" # Requires unpackaged mocket url="https://www.maxmind.com/en/home" arch="noarch" license="Apache-2.0" depends="py3-requests py3-maxminddb py3-aiohttp py3-urllib3" makedepends="python3-dev libmaxminddb-dev py3-setuptools" checkdepends="py3-nose py3-mock" _test_data_commit=2b37923df61aa3b5fb6c7edfbf4dc5fafa10258a source="$pkgname-$pkgver.tar.gz::https://github.com/maxmind/GeoIP2-python/archive/v$pkgver.tar.gz MaxMind-DB-test-data-$_test_data_commit.tar.gz::https://github.com/maxmind/MaxMind-DB/archive/$_test_data_commit.tar.gz" builddir="$srcdir/GeoIP2-python-$pkgver" prepare() { cd "$srcdir" # Submodule required for tests cp -r "MaxMind-DB-$_test_data_commit/" -T "$builddir/tests/data" default_prepare } build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" c500eea45d84cd84a110298f2f76594f07887cd66c2a66f4becf8a6e7d97cc1074b7e1fb8f136f91e705d5a054d1f89bab89d66ab8fede96426df8cf5d7a3440 py3-geoip2-4.6.0.tar.gz a192a9fec623ffb84e369289292bf4a87d91e9a604494583f3bff293eeed56ca1bc1e8db3f89dbccddafe8b35a1d0340ac754998a2c84f6e4d70dfc4d4c7aa1d MaxMind-DB-test-data-2b37923df61aa3b5fb6c7edfbf4dc5fafa10258a.tar.gz "