1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/py3-geocoder/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

29 lines
911 B
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-geocoder
pkgver=1.38.1
pkgrel=3
pkgdesc="A simple and consistent geocoding library"
url="https://github.com/DenisCarriere/geocoder"
arch="noarch"
license="MIT"
depends="python3 py3-requests py3-ratelim py3-click"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-requests-mock"
source="https://pypi.python.org/packages/source/g/geocoder/geocoder-$pkgver.tar.gz"
options="!check" # Requires both an API key and test files which are not present in the tarball
builddir="$srcdir/geocoder-$pkgver"
build() {
python3 setup.py build
}
check() {
pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="e6308b3a918fe2d61bbaa3ad0b0aa2039757a78146acb497fd98e57d4315541dd56a76b482d22823b314e8a093ab8b6759d7aadb6a9c8ab3ee39473e36b218cb geocoder-1.38.1.tar.gz"