upgpkg: python2-requests-git v2.21.0.16.gc9309e4c-1
This commit is contained in:
parent
36b4aa4aa5
commit
9d5030a585
3 changed files with 25 additions and 31 deletions
|
@ -1,27 +1,31 @@
|
||||||
# Generated by mksrcinfo v8
|
|
||||||
# Fri Dec 4 15:25:14 UTC 2015
|
|
||||||
pkgbase = python2-requests-git
|
pkgbase = python2-requests-git
|
||||||
pkgdesc = Python HTTP for Humans.
|
pkgdesc = Python HTTP for Humans.
|
||||||
pkgver = v2.8.1.59.g40ce366
|
pkgver = v2.21.0.16.gc9309e4c
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = http://python-requests.org
|
url = http://python-requests.org
|
||||||
arch = any
|
arch = any
|
||||||
license = custom: ISC
|
license = custom: ISC
|
||||||
makedepends = git
|
makedepends = git
|
||||||
makedepends = python2-distribute
|
makedepends = python2-distribute
|
||||||
|
makedepends = python2-chardet
|
||||||
|
makedepends = python2-idna
|
||||||
|
makedepends = python2-urllib3
|
||||||
|
makedepends = python2-certifi
|
||||||
|
makedepends = python2-pyopenssl
|
||||||
|
makedepends = python2-cryptography
|
||||||
depends = python2
|
depends = python2
|
||||||
|
depends = python2-chardet
|
||||||
|
depends = python2-idna
|
||||||
|
depends = python2-urllib3
|
||||||
|
depends = python2-certifi
|
||||||
depends = python2-pyopenssl
|
depends = python2-pyopenssl
|
||||||
depends = python2-ndg-httpsclient
|
depends = python2-cryptography
|
||||||
depends = python2-pyasn1
|
|
||||||
optdepends = python2-certifi: SSL support
|
|
||||||
optdepends = python2-grequests: asynchronous requests with gevent
|
|
||||||
optdepends = python2-simplejson
|
|
||||||
provides = python2-requests
|
provides = python2-requests
|
||||||
conflicts = python2-requests
|
conflicts = python2-requests
|
||||||
source = requests::git+https://github.com/kennethreitz/requests.git
|
source = requests::git+https://github.com/kennethreitz/requests.git
|
||||||
source = certs.patch
|
source = certs.patch
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = db84c6224f77bbf55c49bd69db71a98b3798f1d3275d7079861e1fbade8cc03f
|
sha256sums = 7e4d8c39b47c338630583d88d9da9c1a91891e6339f61ad5567f3cffe5128d24
|
||||||
|
|
||||||
pkgname = python2-requests-git
|
pkgname = python2-requests-git
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
||||||
|
|
||||||
pkgname=python2-requests-git
|
pkgname=python2-requests-git
|
||||||
pkgver=v2.8.1.59.g40ce366
|
pkgver=v2.21.0.16.gc9309e4c
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
_libname=${pkgname/python2-/}
|
_libname=${pkgname/python2-/}
|
||||||
pkgdesc="Python HTTP for Humans."
|
pkgdesc="Python HTTP for Humans."
|
||||||
url="http://python-requests.org"
|
url="http://python-requests.org"
|
||||||
conflicts=('python2-requests')
|
conflicts=('python2-requests')
|
||||||
makedepends=('git' 'python2-distribute')
|
makedepends=('git' 'python2-distribute' 'python2-chardet' 'python2-idna' 'python2-urllib3' 'python2-certifi' 'python2-pyopenssl' 'python2-cryptography')
|
||||||
optdepends=('python2-certifi: SSL support'
|
depends=('python2' 'python2-chardet' 'python2-idna' 'python2-urllib3' 'python2-certifi' 'python2-pyopenssl' 'python2-cryptography')
|
||||||
'python2-grequests: asynchronous requests with gevent'
|
|
||||||
'python2-simplejson')
|
|
||||||
depends=('python2' 'python2-pyopenssl' 'python2-ndg-httpsclient' 'python2-pyasn1')
|
|
||||||
provides=('python2-requests')
|
provides=('python2-requests')
|
||||||
license=('custom: ISC')
|
license=('custom: ISC')
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -20,7 +17,7 @@ source=('requests::git+https://github.com/kennethreitz/requests.git'
|
||||||
certs.patch
|
certs.patch
|
||||||
)
|
)
|
||||||
sha256sums=('SKIP'
|
sha256sums=('SKIP'
|
||||||
'db84c6224f77bbf55c49bd69db71a98b3798f1d3275d7079861e1fbade8cc03f')
|
'7e4d8c39b47c338630583d88d9da9c1a91891e6339f61ad5567f3cffe5128d24')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$srcdir"/requests
|
cd "$srcdir"/requests
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
--- requests/certs.py.orig 2015-12-04 16:16:33.773055294 +0100
|
diff -Naur requests.orig/certs.py requests/certs.py
|
||||||
+++ requests/certs.py 2015-12-04 16:20:30.106729891 +0100
|
--- requests.orig/certs.py 2019-02-15 13:43:26.819151260 +0100
|
||||||
@@ -11,7 +11,6 @@
|
+++ requests/certs.py 2019-02-15 13:45:10.316052919 +0100
|
||||||
environment, you can change the definition of where() to return a separately
|
@@ -14,5 +14,8 @@
|
||||||
packaged CA bundle.
|
|
||||||
"""
|
"""
|
||||||
-import os.path
|
|
||||||
|
|
||||||
try:
|
|
||||||
from certifi import where
|
from certifi import where
|
||||||
@@ -19,7 +18,7 @@
|
|
||||||
def where():
|
|
||||||
"""Return the preferred certificate bundle."""
|
|
||||||
# vendored bundle inside Requests
|
|
||||||
- return os.path.join(os.path.dirname(__file__), 'cacert.pem')
|
|
||||||
+ return "/etc/ssl/certs/ca-certificates.crt"
|
|
||||||
|
|
||||||
|
+def where():
|
||||||
|
+ return "/etc/ssl/certs/ca-certificates.crt"
|
||||||
|
+
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print(where())
|
print(where())
|
||||||
|
|
Loading…
Reference in a new issue