[arch-commits] Commit in python-httplib2/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 15:35:03 UTC 2020


    Date: Monday, November 9, 2020 @ 15:35:03
  Author: foutrelis
Revision: 746997

archrelease: copy trunk to community-staging-any

Added:
  python-httplib2/repos/community-staging-any/
  python-httplib2/repos/community-staging-any/PKGBUILD
    (from rev 746995, python-httplib2/trunk/PKGBUILD)
  python-httplib2/repos/community-staging-any/cert.patch
    (from rev 746996, python-httplib2/trunk/cert.patch)

------------+
 PKGBUILD   |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 cert.patch |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

Copied: python-httplib2/repos/community-staging-any/PKGBUILD (from rev 746995, python-httplib2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:35:03 UTC (rev 746997)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+# Contributor: Giorgio Lando <patroclo7 at gmail.com>
+# Contributor: Nicolas Quienot <niQo at aur>
+# Contributor: Jesse Young <jesse.young at gmail.com>
+# Contributor: Anton Eliasson <devel at antoneliasson.se>
+
+pkgbase=python-httplib2
+pkgname=python-httplib2
+pkgver=0.18.1
+pkgrel=3
+pkgdesc='Comprehensive HTTP client library, supporting many features'
+url='https://github.com/httplib2/httplib2'
+license=('MIT')
+arch=('any')
+depends=('python' 'ca-certificates')
+makedepends=('python-setuptools')
+checkdepends=('flake8' 'python-mock' 'python-pytest-cov' 'python-pytest-forked'
+              'python-pytest-timeout' 'python-pytest-xdist' 'python-pytest-randomly'
+              'python-future')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/httplib2/httplib2/archive/v$pkgver.tar.gz"
+        'cert.patch')
+sha512sums=('fd40417607afc4f2b225cf50a7e3f6d437ba97445e03b1568508d31228dccb8e0bc1ea82b0d8727a2df60c6b389726d22d24646660ee1359f9b50b3c5009c2f5'
+            '503719fb07b9ff1f06f252b73804787759139098dba990a7dcd9e9b3602f7271d2251e703993636b249b3597c9a240c721c536a4fe31526ec4ba9441f6c8da56')
+
+prepare() {
+  cd httplib2-$pkgver
+  patch -p0 -i "$srcdir"/cert.patch
+  sed -i 's/==/>=/' requirements-test.txt
+}
+
+build() {
+  cd "$srcdir"/httplib2-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd httplib2-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd httplib2-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-httplib2/repos/community-staging-any/cert.patch (from rev 746996, python-httplib2/trunk/cert.patch)
===================================================================
--- community-staging-any/cert.patch	                        (rev 0)
+++ community-staging-any/cert.patch	2020-11-09 15:35:03 UTC (rev 746997)
@@ -0,0 +1,37 @@
+--- python2/httplib2/certs.py.orig	2018-11-15 20:09:04.605507207 +0800
++++ python2/httplib2/certs.py	2018-11-15 20:10:35.122107327 +0800
+@@ -19,9 +19,7 @@
+     pass
+ 
+ 
+-BUILTIN_CA_CERTS = os.path.join(
+-    os.path.dirname(os.path.abspath(__file__)), "cacerts.txt"
+-)
++BUILTIN_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
+ 
+ 
+ def where():
+--- python3/httplib2/certs.py.orig	2018-11-15 20:09:15.708832692 +0800
++++ python3/httplib2/certs.py	2018-11-15 20:11:16.888741464 +0800
+@@ -19,9 +19,7 @@
+     pass
+ 
+ 
+-BUILTIN_CA_CERTS = os.path.join(
+-    os.path.dirname(os.path.abspath(__file__)), "cacerts.txt"
+-)
++BUILTIN_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
+ 
+ 
+ def where():
+--- tests/test_cacerts_from_env.py.orig	2018-11-15 20:21:46.148162984 +0800
++++ tests/test_cacerts_from_env.py	2018-11-15 20:21:58.051484347 +0800
+@@ -6,7 +6,7 @@
+ import httplib2
+ 
+ 
+-CA_CERTS_BUILTIN = os.path.join(os.path.dirname(httplib2.__file__), "cacerts.txt")
++CA_CERTS_BUILTIN = "/etc/ssl/certs/ca-certificates.crt"
+ CERTIFI_CERTS_FILE = "unittest_certifi_file"
+ CUSTOM_CA_CERTS = "unittest_custom_ca_certs"
+ 



More information about the arch-commits mailing list