blob: 47243c2f45fe74d10a72bddc2740c8e19a59b585 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-geocoder
pkgver=1.38.1
pkgrel=6
pkgdesc="A simple and consistent geocoding library"
url="https://github.com/DenisCarriere/geocoder"
license=('MIT')
arch=('any')
depends=('python-requests' 'python-ratelim' 'python-click' 'python-six' 'python-future')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-requests-mock')
source=("https://pypi.io/packages/source/g/geocoder/geocoder-$pkgver.tar.gz")
sha512sums=('e6308b3a918fe2d61bbaa3ad0b0aa2039757a78146acb497fd98e57d4315541dd56a76b482d22823b314e8a093ab8b6759d7aadb6a9c8ab3ee39473e36b218cb')
build() {
cd geocoder-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd geocoder-$pkgver
pytest || echo "Some tests require API key"
}
package() {
cd geocoder-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|