Commit f3c21600 authored by Leo's avatar Leo

testing/py3-geoip2: upgrade to 4.1.0

parent ce8ead1a
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-geoip2
pkgver=4.0.2
pkgver=4.1.0
pkgrel=0
pkgdesc="An API for the GeoIP2 web services and databases"
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"
depends="py3-requests py3-maxminddb py3-aiohttp py3-urllib3"
makedepends="python3-dev libmaxminddb-dev py3-setuptools"
checkdepends="py3-nose py3-mock"
_test_data_commit=f6ed981c23b0eb33d7c07568e2177236252afda6
source="$pkgname-$pkgver.tar.gz::https://github.com/maxmind/GeoIP2-python/archive/v${pkgver}.tar.gz
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"
......@@ -20,26 +21,20 @@ prepare() {
# Submodule required for tests
cp -r "MaxMind-DB-$_test_data_commit/"* "$builddir/tests/data"
default_prepare
default_prepare
}
build() {
cd "$builddir"
python3 setup.py build
python3 setup.py build
}
check() {
cd "$builddir"
python3 setup.py test
python3 setup.py test
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="28b38ac41ebc39b77460bc845f8a4115b61bc6c249753753f2fede89365934f3675ec93464c93e5d4062e70b3fd55fec26373d4dc563ab1054c422b45f82b28f py3-geoip2-4.0.2.tar.gz
sha512sums="a82236b5097d555cfdba2885129202d4d42151997aad2e80e5aab7f96231642451a2e82f0176ca8e6ea033a69cfca5b3f82bf3de6b0cb9601ac926c3447fa680 py3-geoip2-4.1.0.tar.gz
f7b9d370c330980d9419c7bea486b258aef3fa8ab49f83b860ef73036fc577c402e2f631090c5d1d23f2a8e34f927030a8fc6dc15edcd8002136673685aecb12 MaxMind-DB-test-data-f6ed981c23b0eb33d7c07568e2177236252afda6.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment