[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Jun 7 09:14:15 UTC 2018


    Date: Thursday, June 7, 2018 @ 09:14:14
  Author: felixonmars
Revision: 341728

addpkg: python-google-auth 1.5.0-1

Added:
  python-google-auth/
  python-google-auth/repos/
  python-google-auth/trunk/
  python-google-auth/trunk/PKGBUILD

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

Added: python-google-auth/trunk/PKGBUILD
===================================================================
--- python-google-auth/trunk/PKGBUILD	                        (rev 0)
+++ python-google-auth/trunk/PKGBUILD	2018-06-07 09:14:14 UTC (rev 341728)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-google-auth
+pkgname=(python-google-auth python2-google-auth)
+pkgver=1.5.0
+pkgrel=1
+pkgdesc="Google Authentication Library"
+url="https://github.com/GoogleCloudPlatform/google-auth-library-python"
+license=('Apache')
+arch=('any')
+makedepends=('ca-certificates' 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules'
+             'python2-pyasn1-modules' 'python-rsa' 'python2-rsa' 'python-six' 'python2-six'
+             'python-cachetools' 'python2-cachetools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
+              'python-requests' 'python2-requests' 'python-flask' 'python2-flask'
+              'python-oauth2client' 'python2-oauth2client' 'python-pytest-localserver'
+              'python2-pytest-localserver')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver.tar.gz")
+sha512sums=('3924332a5ffea4974ac65f46aa40912c2ce9306113c52001e208765080c16580d98e8953d0d81a239c8a906584bd7702de04c92fd7c8946803bb68223b43f31b')
+
+prepare() {
+  # Use system cert
+  sed -i -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+         -e 's|if certifi is not None:|if True:|' \
+         google-auth-library-python-$pkgver/google/auth/transport/urllib3.py
+  cp -a google-auth-library-python-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/google-auth-library-python-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/google-auth-library-python-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # Skip the without_certifi tests because we always have the system ca bundle
+
+  cd "$srcdir"/google-auth-library-python-$pkgver
+  python setup.py pytest --addopts "tests -k 'not test__make_default_http_without_certfi'"
+
+  cd "$srcdir"/google-auth-library-python-$pkgver-py2
+  python2 setup.py pytest --addopts "tests -k 'not test__make_default_http_without_certfi'"
+}
+
+package_python-google-auth() {
+  depends=('ca-certificates' 'python-pyasn1-modules' 'python-rsa' 'python-six' 'python-cachetools')
+
+  cd google-auth-library-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-google-auth() {
+  depends=('ca-certificates' 'python2-pyasn1-modules' 'python2-rsa' 'python2-six' 'python2-cachetools')
+
+  cd google-auth-library-python-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}


Property changes on: python-google-auth/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list