Skip to content
Snippets Groups Projects
Commit 15a83dd8 authored by Leo's avatar Leo Committed by Kevin Daudt
Browse files

testing/py3-maxminddb: modernize

parent 1e0473b4
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ url="http://maxminddb.readthedocs.org/"
arch="all"
license="Apache-2.0"
depends="python3"
makedepends="libmaxminddb-dev python3 python3-dev py3-setuptools"
makedepends="libmaxminddb-dev python3-dev py3-setuptools"
checkdepends="py3-nose py3-mock"
_test_data_commit=90c7fb95d67ee03ca7fc487fb69f525bcc19a671
source="$pkgname-$pkgver.tar.gz::https://github.com/maxmind/MaxMind-DB-Reader-python/archive/v$pkgver.tar.gz
......@@ -22,24 +22,18 @@ 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
}
check() {
cd "$builddir"
python3 setup.py test
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment