[arch-commits] Commit in python-geoip2/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Aug 26 07:05:49 UTC 2019


    Date: Monday, August 26, 2019 @ 07:05:47
  Author: felixonmars
Revision: 501822

archrelease: copy trunk to community-any

Added:
  python-geoip2/repos/community-any/
  python-geoip2/repos/community-any/PKGBUILD
    (from rev 501821, python-geoip2/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: python-geoip2/repos/community-any/PKGBUILD (from rev 501821, python-geoip2/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-08-26 07:05:47 UTC (rev 501822)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-geoip2
+pkgver=2.9.0
+_testdatacommit=f6ed981c23b0eb33d7c07568e2177236252afda6
+pkgrel=1
+pkgdesc="MaxMind GeoIP2 API"
+url="https://github.com/maxmind/GeoIP2-python"
+license=('Apache')
+arch=('any')
+depends=('python-maxminddb' 'python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-requests-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/maxmind/GeoIP2-python/archive/v$pkgver.tar.gz"
+        https://github.com/maxmind/MaxMind-DB/archive/$_testdatacommit.tar.gz)
+sha512sums=('8631a41d9644887d0149678e40a5f9d03bba660853c308c43bf358cd49b3f021566b9d6f65b670c0c1c78bcb4cb7cb007ad2db6f3c032749afa454fc9e06d74c'
+            'f7b9d370c330980d9419c7bea486b258aef3fa8ab49f83b860ef73036fc577c402e2f631090c5d1d23f2a8e34f927030a8fc6dc15edcd8002136673685aecb12')
+
+prepare() {
+  cd GeoIP2-python-$pkgver
+  rmdir tests/data
+  ln -s "$srcdir"/MaxMind-DB-$_testdatacommit tests/data
+}
+
+build() {
+  cd GeoIP2-python-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd GeoIP2-python-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd GeoIP2-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list