mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Weilu Jia <optix2000@gmail.com>
|
|
# Maintainer: Weilu Jia <optix2000@gmail.com>
|
|
pkgname=py3-geoip
|
|
pkgver=1.3.2
|
|
pkgrel=4
|
|
pkgdesc="MaxMind GeoIP Legacy Database - Python API"
|
|
url="https://github.com/maxmind/geoip-api-python"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
depends="python3 geoip"
|
|
makedepends="py3-setuptools python3-dev geoip-dev py3-gpep517"
|
|
checkdepends="py3-nose"
|
|
options="!check" # Until there's an easy way to download legacy GeoIP DBs
|
|
source="https://pypi.python.org/packages/source/G/GeoIP/GeoIP-$pkgver.tar.gz"
|
|
builddir="$srcdir/GeoIP-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m nose
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
313af794d839e83408b40573566fb55483c1ddd663a7919b54751bc9da85cf855f9eb17d8fdb641702740da5c5d79d79d3d7f15b82fa88092f780d0c667c4e7a GeoIP-1.3.2.tar.gz
|
|
"
|