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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:21:29 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:29
  Author: felixonmars
Revision: 1058092

archrelease: copy trunk to community-staging-x86_64

Added:
  python-maxminddb/repos/community-staging-x86_64/
  python-maxminddb/repos/community-staging-x86_64/PKGBUILD
    (from rev 1058087, python-maxminddb/trunk/PKGBUILD)

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

Copied: python-maxminddb/repos/community-staging-x86_64/PKGBUILD (from rev 1058087, python-maxminddb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 20:21:29 UTC (rev 1058092)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-maxminddb
+pkgver=2.2.0
+_testdatacommit=e3764a229ff98541884a3cd4bd7dc95f4ae5d466
+pkgrel=2
+pkgdesc="Reader for the MaxMind DB format"
+url="https://github.com/maxmind/MaxMind-DB-Reader-python"
+license=('Apache')
+arch=('x86_64')
+depends=('python' 'libmaxminddb')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/maxmind/MaxMind-DB-Reader-python/archive/v$pkgver.tar.gz"
+        https://github.com/maxmind/MaxMind-DB/archive/$_testdatacommit.tar.gz)
+sha512sums=('f9848ba16c0b92cefe22d086634947cef7d741987387ee249976d18d14b01207ebede3cd76c52edd2fd465d38fcb784afe6953f255b9334311e12fec1c935feb'
+            '618bef60b69492aecd06467428e36d7a10f2aa846e7afd507b6eac1f3a6ceceeb14ed95654b629c9d2638634a5184658236b644edccc99ae2d24e35d9d1f6db9')
+
+prepare() {
+  cd MaxMind-DB-Reader-python-$pkgver
+  rmdir tests/data
+  ln -s "$srcdir"/MaxMind-DB-$_testdatacommit tests/data
+}
+
+build() {
+  cd MaxMind-DB-Reader-python-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd MaxMind-DB-Reader-python-$pkgver
+  python setup.py nosetests
+}
+
+package() {
+  cd MaxMind-DB-Reader-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list