[arch-commits] Commit in python-geoip2/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Dec 22 18:51:53 UTC 2019


    Date: Sunday, December 22, 2019 @ 18:51:52
  Author: felixonmars
Revision: 538885

archrelease: copy trunk to community-testing-any

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

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

Copied: python-geoip2/repos/community-testing-any/PKGBUILD (from rev 538884, python-geoip2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-12-22 18:51:52 UTC (rev 538885)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-geoip2
+pkgver=3.0.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=('685cfaca15abac73ceafa5795d8740a9d1e95f255c516623c80981bb78a5c6ad357829b154c382a4928295f311c6922b621aee1c794cac962da857507bfcfbdb'
+            '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