# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=py3-maxminddb pkgver=2.2.0 pkgrel=2 pkgdesc="Python MaxMind DB reader extension" url="https://maxminddb.readthedocs.io/en/latest/" arch="all" license="Apache-2.0" depends="python3" makedepends="libmaxminddb-dev python3-dev py3-setuptools" checkdepends="py3-nose py3-mock" _test_data_commit=86095bd9855d6313c501fe0097891a3c6734ae90 source="$pkgname-$pkgver.tar.gz::https://github.com/maxmind/MaxMind-DB-Reader-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 fix-version-2.2.0.patch::https://github.com/maxmind/MaxMind-DB-Reader-python/commit/42ed2df7e84bfc14645b075fc149a57213d3298d.patch " builddir="$srcdir/MaxMind-DB-Reader-python-$pkgver" prepare() { cd "$srcdir" # Submodule required for tests cp -r "MaxMind-DB-$_test_data_commit/"* "$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=" f9848ba16c0b92cefe22d086634947cef7d741987387ee249976d18d14b01207ebede3cd76c52edd2fd465d38fcb784afe6953f255b9334311e12fec1c935feb py3-maxminddb-2.2.0.tar.gz 537423532e4d61aa5d207199498a9354d0ea8322af3b66521b6e3fb1fdfbddd82bfeb19781fead84a028c01713c7784f059e6b279799a7cf5aa42502a31ff7c4 MaxMind-DB-test-data-86095bd9855d6313c501fe0097891a3c6734ae90.tar.gz 212357570a2e8278bd525f2b77f02485c18cd4d48e56076a3d5200b8102fe98ceb229105e958794af20f41762f52c402d4d065b3291fd665ad5e97306bbd2efd fix-version-2.2.0.patch "