Date: Saturday, April 8, 2023 @ 02:41:38
Author: felixonmars
Revision: 1441498
archrelease: copy trunk to community-staging-any
Added:
python-geocoder/repos/community-staging-any/
python-geocoder/repos/community-staging-any/PKGBUILD
(from rev 1441497, python-geocoder/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-geocoder/repos/community-staging-any/PKGBUILD (from rev 1441497,
python-geocoder/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 02:41:38 UTC (rev 1441498)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-geocoder
+pkgver=1.38.1
+pkgrel=5
+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')
+checkdepends=('python-pytest-runner' 'python-requests-mock')
+source=("https://pypi.io/packages/source/g/geocoder/geocoder-$pkgver.tar.gz")
+sha512sums=('e6308b3a918fe2d61bbaa3ad0b0aa2039757a78146acb497fd98e57d4315541dd56a76b482d22823b314e8a093ab8b6759d7aadb6a9c8ab3ee39473e36b218cb')
+
+build() {
+ cd geocoder-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd geocoder-$pkgver
+ python setup.py pytest || echo "Some tests require API key"
+}
+
+package() {
+ cd geocoder-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}