Commit f8eacb5f authored by Luca Giambonini's avatar Luca Giambonini

python3 group rebuild

parent 5cb97877
pkgbase=python-asn1crypto
pkgname=('python3-asn1crypto' 'python2-asn1crypto')
pkgver=0.23.0
pkgrel=1
arch=('any')
license=('MIT')
pkgdesc="Python ASN.1 library with a focus on performance and a pythonic API"
url="https://github.com/wbond/asn1crypto"
makedepends=('python3-setuptools' 'python2-setuptools')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/wbond/asn1crypto/archive/$pkgver.tar.gz")
sha512sums=('1f702d80050c2b198bc6a829bdef74d7722222f808a5ca6856482f16d1e0e9f36476845eac64ef27ca141ab6280b7da3ca60fa33edda6b886f27dc72c00d3650')
prepare() {
cp -a asn1crypto-$pkgver{,-py2}
}
build() {
cd "$srcdir"/asn1crypto-$pkgver
python3 setup.py build
cd "$srcdir"/asn1crypto-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/asn1crypto-$pkgver
python3 run.py tests
cd "$srcdir"/asn1crypto-$pkgver-py2
python2 run.py tests
}
package_python3-asn1crypto() {
depends=('python3')
cd asn1crypto-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-asn1crypto/LICENSE
}
package_python2-asn1crypto() {
depends=('python2')
cd asn1crypto-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-asn1crypto/LICENSE
}
pkgbase=python-bcrypt
pkgname=("python3-bcrypt" "python2-bcrypt")
pkgver=3.1.4
pkgrel=1
pkgdesc="Modern password hashing for your software and your servers"
arch=('x86_64')
url="https://github.com/pyca/bcrypt"
license=('Apache')
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-cffi' 'python2-cffi'
'python3-six' 'python2-six')
checkdepends=('python3-pytest-runner' 'python2-pytest-runner')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pyca/bcrypt/archive/$pkgver.tar.gz")
sha512sums=('f4b18095ee1ea09a4a1ae4d970353d4743b84e8b2637132857339febc8fd25697359c8a3308578db623ee0c900a5711a693d9bfd21625bf93c1e6437bfb24f6c')
prepare() {
cp -a "$srcdir"/bcrypt-$pkgver{,-py2}
export LC_CTYPE=en_US.UTF-8
}
build() {
cd "$srcdir"/bcrypt-$pkgver
python3 setup.py build
cd "$srcdir"/bcrypt-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/bcrypt-$pkgver
python3 setup.py pytest
cd "$srcdir"/bcrypt-$pkgver-py2
python2 setup.py pytest
}
package_python3-bcrypt() {
depends=('python3-cffi' 'python3-six')
cd bcrypt-$pkgver
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -d "$pkgdir"/usr/share/licenses/$pkgname
install -m 644 "$srcdir"/bcrypt-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname
}
package_python2-bcrypt() {
depends=('python2-cffi' 'python2-six')
cd bcrypt-$pkgver-py2
python2 setup.py install --prefix=/usr --root="$pkgdir"
install -d "$pkgdir"/usr/share/licenses/$pkgname
install -m 644 "$srcdir"/bcrypt-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname
}
......@@ -4,12 +4,12 @@
pkgbase=python-cryptography
pkgname=('python3-cryptography' 'python2-cryptography')
pkgver=2.1.2
pkgrel=1
pkgrel=2
pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
arch=('x86_64')
license=('Apache')
url="http://pypi.python.org/pypi/cryptography"
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-six' 'python2-six' 'python3-cffi' 'python2-cffi' 'python3-pyasn1' 'python2-pyasn1' ) # 'python2-ipaddress' 'python2-enum34' 'python3-idna' 'python2-idna'
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-six' 'python2-six' 'python3-cffi' 'python2-cffi' 'python3-pyasn1' 'python2-pyasn1' 'python2-ipaddress' 'python2-enum34' 'python3-idna' 'python2-idna')
#checkdepends=('python3-pytest' 'python2-pytest' 'python3-cryptography-vectors' 'python2-cryptography-vectors'
# 'python3-iso8601' 'python2-iso8601' 'python3-pretend' 'python2-pretend' 'python3-pyasn1' 'python2-pyasn1')
source=("https://pypi.io/packages/source/c/cryptography/cryptography-$pkgver.tar.gz")
......
pkgbase=python-httplib2
pkgname=('python2-httplib2' 'python3-httplib2')
_pkgname=httplib2
pkgver=0.9.2
pkgrel=2
pkgver=0.10.3
pkgrel=1
pkgdesc="A comprehensive HTTP client library"
arch=('x86_64')
url="https://github.com/jcgregorio/httplib2"
license=('MIT')
makedepends=('python2-setuptools' 'python3-setuptools' 'python3' 'python2')
source=("https://github.com/jcgregorio/$_pkgname/archive/$pkgver.tar.gz")
md5sums=('eb39d90dc64bd12a94184d76bddc65a3')
source=("git+https://github.com/httplib2/httplib2.git#tag=v$pkgver")
md5sums=('SKIP')
prepare() {
# Prepare one build directory for each package
......@@ -22,7 +22,7 @@ package_python3-httplib2() {
cd "$pkgname"
python3 setup.py install -O1 --root="$pkgdir"
chmod 644 $pkgdir/usr/lib/python3.5/site-packages/httplib2/*
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-httplib2() {
......@@ -30,5 +30,5 @@ package_python2-httplib2() {
cd "$pkgname"
python2 setup.py install -O1 --root="$pkgdir"
chmod 644 $pkgdir/usr/lib/python2.7/site-packages/httplib2/*
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
pkgbase=python-idna
pkgname=('python3-idna' 'python2-idna')
pkgver=2.6
pkgrel=1
pkgdesc="Internationalized Domain Names in Applications (IDNA)"
arch=('any')
license=('BSD')
url="https://github.com/kjd/idna"
makedepends=('python3-setuptools' 'python2-setuptools')
source=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz")
sha512sums=('cb5dbfab44c4d11521c67f9d29391f184d1267a3da6dc89f4ed12c60a7a909d5c7474c3ea2bddd0af7063f4f620e87a8dd586bb07e8b961b30b1dd7c969704c2')
prepare() {
cp -a idna-$pkgver{,-py2}
}
build() {
cd "$srcdir"/idna-$pkgver
python3 setup.py build
cd "$srcdir"/idna-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/idna-$pkgver
python3 setup.py test
cd "$srcdir"/idna-$pkgver-py2
python2 setup.py test
}
package_python3-idna() {
depends=('python3')
cd idna-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
}
package_python2-idna() {
depends=('python2')
cd idna-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
}
pkgbase=python-ndg-httpsclient
pkgname=(python3-ndg-httpsclient python2-ndg-httpsclient)
_pkgname=ndg_httpsclient
pkgver=0.4.3
pkgrel=1
pkgdesc="Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL"
arch=(any)
url="https://pypi.python.org/pypi/ndg-httpsclient"
license=('BSD')
makedepends=(python2-setuptools python2-pyopenssl python2-pyasn1
python3-setuptools python3-pyopenssl python3-pyasn1)
options=(!emptydirs)
source=(https://files.pythonhosted.org/packages/source/n/ndg-httpsclient/$_pkgname-$pkgver.tar.gz)
sha256sums=('7bfd8c5cfcbc241a93ca6a4e45f952650f5c7ecf7c49b1dbcf5f4d390240be0b')
build() {
cd "$srcdir"/$_pkgname-$pkgver
rm -rf ../buildpy3; mkdir ../buildpy3
python3 setup.py build -b ../buildpy3
rm -rf ../buildpy2; mkdir ../buildpy2
python2 setup.py build -b ../buildpy2
}
package_python3-ndg-httpsclient() {
depends=(python3-pyopenssl python3-pyasn1)
_site_packages=$(python3 -sSc 'import site; print(site.getsitepackages()[0])')
cd "$srcdir"/$_pkgname-$pkgver
rm -rf build; ln -s ../buildpy3 build
python3 setup.py install --skip-build -O1 --root="$pkgdir"
install -Dm0644 "$pkgdir$_site_packages"/ndg/httpsclient/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-ndg-httpsclient() {
depends=(python2-pyopenssl python2-pyasn1)
_site_packages=$(python2 -sSc 'import site; print(site.getsitepackages()[0])')
cd "$srcdir"/$_pkgname-$pkgver
rm -rf build; ln -s ../buildpy2 build
python2 setup.py install --skip-build -O1 --root="$pkgdir"
install -Dm0644 "$pkgdir$_site_packages"/ndg/httpsclient/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
mv "$pkgdir"/usr/bin/ndg_httpclient{,2}
}
pkgbase=python-paramiko
pkgname=('python3-paramiko' 'python2-paramiko')
pkgver=1.16.0
pkgrel=2
pkgver=2.3.1
pkgrel=1
pkgdesc="Python module that implements the SSH2 protocol"
url="https://github.com/paramiko/paramiko/"
license=('LGPL')
arch=('any')
makedepends=('python3-ecdsa' 'python2-ecdsa' 'python3-crypto' 'python2-crypto')
source=("http://pypi.python.org/packages/source/p/paramiko/paramiko-$pkgver.tar.gz")
sha256sums=('3297ebd3cd072f573772f7c7426939a443c62c458d54bb632ff30fd6ecf96892')
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-ecdsa' 'python2-ecdsa' 'python3-crypto' 'python2-crypto'
'python3-cryptography' 'python2-cryptography' 'python3-pyasn1' 'python2-pyasn1'
'python3-bcrypt' 'python2-bcrypt' 'python3-pynacl' 'python2-pynacl')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/paramiko/paramiko/archive/$pkgver.tar.gz")
sha256sums=('3b50a5a2ce206cb540c27ce83245f565d0139104ee83af33f695db944c926166')
prepare() {
cp -a paramiko-$pkgver{,-py2}
......@@ -18,20 +20,19 @@ prepare() {
-e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
}
#check() {
# cd "$srcdir/paramiko-$pkgver"
# LANG=en_US.UTF-8 python3 test.py
check() {
cd "$srcdir/paramiko-$pkgver"
LANG=en_US.UTF-8 python3 test.py
# cd "$srcdir/paramiko-$pkgver-py2"
# LANG=en_US.UTF-8 python2 test.py
#}
cd "$srcdir/paramiko-$pkgver-py2"
LANG=en_US.UTF-8 python2 test.py
}
package_python3-paramiko() {
depends=('python3-crypto' 'python3-ecdsa')
cd "$srcdir/paramiko-$pkgver"
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
install -dm755 "$pkgdir/usr/share/doc/$pkgname/demos"
install -m644 demos/* "$pkgdir/usr/share/doc/$pkgname/demos"
chmod 755 "$pkgdir/usr/share/doc/$pkgname/demos/"*.py
......@@ -42,8 +43,7 @@ package_python2-paramiko() {
cd "$srcdir/paramiko-$pkgver-py2"
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
install -dm755 "$pkgdir/usr/share/doc/$pkgname/demos"
install -m644 demos/* "$pkgdir/usr/share/doc/$pkgname/demos"
chmod 755 "$pkgdir/usr/share/doc/$pkgname/demos/"*.py
}
\ No newline at end of file
}
pkgbase=python-pillow
pkgname=(python3-pillow python2-pillow)
pkgver=3.4.2
pkgver=4.3.0
pkgrel=1
# consider splitting out sane if this gets weird enough
_sanever=2.8.2
_sanever=2.8.3
_appname=Pillow
_py2basever=2.7
_py3basever=3.5m
_py3basever=3.6m
pkgdesc="Python Imaging Library (PIL) fork. Python3 version."
arch=('x86_64')
url="http://python-pillow.github.io/"
......@@ -14,8 +14,8 @@ license=('BSD')
makedepends=('python3-setuptools' 'python3' 'python2-setuptools' 'python2' 'lcms' 'libwebp' 'tk' 'sane')
source=("https://files.pythonhosted.org/packages/source/P/$_appname/$_appname-$pkgver.tar.gz"
"Sane-$_sanever.tar.gz::https://github.com/python-pillow/Sane/archive/v$_sanever.tar.gz")
md5sums=('09ebb92ec5cbba13ff1acf139caf6b66'
'295f1c745ab4da6a34b524019b181978')
md5sums=('ac8904e17922c8a699ff7d6cb0cf89cd'
'96877da43524fdab2c367541da547d2b')
prepare() {
cd "$srcdir"
......
......@@ -6,7 +6,7 @@
pkgbase=python-ply
pkgname=(python3-ply python2-ply)
pkgver=3.8
pkgver=3.10
pkgrel=1
pkgdesc='Implementation of lex and yacc parsing tools'
arch=('any')
......@@ -15,7 +15,7 @@ license=('BSD')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("${url}ply-$pkgver.tar.gz"
LICENSE)
sha256sums=('e7d1bdff026beb159c9942f7a17e102c375638d9478a7ecd4cc0c76afd8de0b8'
sha256sums=('96e94af7dd7031d8d6dd6e2a8e0de593b511c211a86e28a9c9621c275ac8bacb'
'87c20dd0a774f4d4ff837b4f1555f7eb1ed1b8dc1e3223cd105e5c1e282d62bf')
prepare() {
......
pkgbase=python-psutil
pkgname=('python3-psutil' 'python2-psutil')
pkgver=4.1.0
pkgver=5.4.0
pkgrel=1
arch=('x86_64')
url='https://github.com/giampaolo/psutil'
license=('custom: BSD')
makedepends=('python3' 'python3-setuptools' 'python2' 'python2-setuptools')
source=("https://pypi.python.org/packages/source/p/psutil/psutil-${pkgver}.tar.gz")
sha1sums=('c1f4e1581e5b6aaee549093b624c78e3c3a1e1ce')
source=("https://github.com/giampaolo/psutil/archive/release-$pkgver.tar.gz")
sha1sums=('0817acb5fb9dd87e8de1d48cf1f70934e28f20a7')
build() {
cd psutil-${pkgver}
cd psutil-release-$pkgver
msg2 python3
python3 setup.py build --build-lib=build/python3
......@@ -25,7 +25,7 @@ package_python3-psutil() {
pkgdesc='A cross-platform process and system utilities module for Python'
depends=('glibc' 'python3')
cd psutil-${pkgver}
cd psutil-release-$pkgver
python3 setup.py build --build-lib=build/python3 \
install --root="${pkgdir}" --optimize=1
install -D -m 644 LICENSE "${pkgdir}/"usr/share/licenses/${pkgname}/LICENSE
......@@ -35,7 +35,7 @@ package_python2-psutil() {
pkgdesc='A cross-platform process and system utilities module for Python2'
depends=('glibc' 'python2')
cd psutil-${pkgver}
cd psutil-release-$pkgver
python2 setup.py build --build-lib=build/python2 \
install --root="${pkgdir}" --optimize=1
install -D -m 644 LICENSE "${pkgdir}/"usr/share/licenses/${pkgname}/LICENSE
......
pkgbase=python-ptyprocess
pkgname=('python3-ptyprocess' 'python2-ptyprocess')
_pkgname=ptyprocess
pkgver=0.5
pkgrel=2
pkgver=0.5.2
pkgrel=1
pkgdesc="Run a subprocess in a pseudo terminal"
url="https://github.com/pexpect/ptyprocess"
arch=('any')
license=('ISC')
depends=('python3')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("https://pypi.python.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
source=("https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
'https://raw.githubusercontent.com/pexpect/ptyprocess/master/LICENSE')
sha256sums=('dcb78fb2197b49ca1b7b2f37b047bc89c0da7a90f90bd5bc17c3ce388bb6ef59'
'c822d385b1a73329846241799becf18690b5d44764c1bed69300b536a405030a')
sha256sums=('e64193f0047ad603b71f202332ab5527c5e52aa7c8b609704fc28c0dc20c4365'
'c822d385b1a73329846241799becf18690b5d44764c1bed69300b536a405030a')
prepare() {
cd "$srcdir"
......
......@@ -6,7 +6,7 @@
pkgbase=python-pycparser
pkgname=(python3-pycparser python2-pycparser)
pkgver=2.14
pkgver=2.18
pkgrel=1
pkgdesc='C parser and AST generator written in Python'
url='https://github.com/eliben/pycparser'
......@@ -14,7 +14,7 @@ makedepends=('python3-ply' 'python2-ply' 'git')
arch=('any')
license=('BSD')
source=("https://github.com/eliben/pycparser/archive/release_v$pkgver.zip")
sha256sums=('8612b94df49ce0c69a56b7ba23530e69cfb91bf788cc7fde14e17a099feb4e25')
sha256sums=('2e0049a97d0e2d24b68b3d3f5a24e705049d972f6762595857d0f9f9f33ae64e')
prepare() {
cp -r pycparser-release_v${pkgver}{,-py2}
......
......@@ -5,7 +5,7 @@ _pypiname=pycurl
pkgbase=python-$_pypiname
pkgname=('python3-pycurl' 'python2-pycurl')
pkgver=7.43.0
pkgrel=1
pkgrel=2
arch=('x86_64')
url="http://pycurl.sourceforge.net"
license=('LGPL' 'MIT')
......
pkgbase=python-pynacl
pkgname=(python3-pynacl python2-pynacl)
pkgver=1.1.2
pkgrel=1
pkgdesc='Python binding to the Networking and Cryptography (NaCl) library'
url='https://pypi.python.org/pypi/PyNaCl'
arch=('x86_64')
license=('Apache')
depends=('libsodium')
makedepends=('python3-setuptools' 'python3-pycparser' 'python3-cffi'
'python2-setuptools' 'python2-pycparser' 'python2-cffi')
source=("https://pypi.org/packages/source/P/PyNaCl/PyNaCl-$pkgver.tar.gz")
sha512sums=('2fb186fca3ebdf3824b4a2517056124901cf81f0c6cfce3e46abf0e44a801150dfd68a08627f1c7cd9b115a67b1ed0802d21140cd79d700803cc409d1e1e9857')
prepare() {
cp -a PyNaCl-$pkgver{,-python2}
}
build() {
export SODIUM_INSTALL=system
cd "$srcdir"/PyNaCl-$pkgver
python3 setup.py build
cd "$srcdir"/PyNaCl-$pkgver-python2
python2 setup.py build
}
package_python3-pynacl() {
depends=('libsodium' 'python3' 'python3-six')
export SODIUM_INSTALL=system
cd PyNaCl-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
package_python2-pynacl() {
depends=('libsodium' 'python2' 'python2-six')
export SODIUM_INSTALL=system
cd PyNaCl-$pkgver-python2
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
pkgbase=pyopenssl
pkgname=('python3-pyopenssl' 'python2-pyopenssl')
pkgver=17.1.0
pkgver=17.3.0
pkgrel=1
arch=('x86_64')
url="http://pypi.python.org/pypi/pyOpenSSL"
......@@ -8,7 +8,7 @@ license=('LGPL2.1')
makedepends=('python3-setuptools' 'python2-setuptools' 'openssl' 'python3-six' 'python2-six'
'python3-cryptography' 'python2-cryptography')
source=(https://pypi.io/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz)
md5sums=('19fcc38b77fc17f494f671c8ae04b40f')
md5sums=('09dcd307b8d2068f9dd5aaa3a3a88992')
build() {
cd "${srcdir}"
......
pkgbase='python-pyside-tools'
pkgbase=python-pyside-tools
pkgname=('python2-pyside-tools' 'python3-pyside-tools' 'pyside-tools-common')
pkgver=0.2.15
pkgrel=2
pkgrel=3
arch=('x86_64')
license=('LGPL')
url='https://qt-project.org/wiki/PySide'
......@@ -31,8 +31,8 @@ build() {
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_SUFFIX=.cpython-34m \
-DPYTHON_BASENAME=.cpython-34m \
-DPYTHON_SUFFIX=.cpython-36m-x86_64-linux-gnu \
-DPYTHON_BASENAME=.cpython-36m-x86_64-linux-gnu \
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake
make
}
......
......@@ -4,7 +4,7 @@ pkgbase=python-pyside
pkgname=(python-pyside-common python2-pyside python3-pyside)
_pkgrealname=pyside
pkgver=1.2.4
pkgrel=2
pkgrel=3
arch=('x86_64')
license=('LGPL')
url="http://qt-project.org/wiki/PySide"
......@@ -24,7 +24,7 @@ build(){
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF \
-DQT_PHONON_INCLUDE_DIR=/usr/include/phonon \
-DPYTHON_SUFFIX=.cpython-35m-x86_64-linux-gnu \
-DPYTHON_SUFFIX=.cpython-36m-x86_64-linux-gnu \
-DQT_SRC_DIR=/usr/include/Qt
make
......
pkgbase=python-pysocks
pkgname=(python3-pysocks python2-pysocks)
pkgver=1.6.7
pkgrel=1
pkgdesc="SOCKS4, SOCKS5 or HTTP proxy (Anorov fork PySocks replaces socksipy)"
arch=('any')
license=('BSD')
url="https://github.com/Anorov/PySocks"
makedepends=('python3-setuptools' 'python2-setuptools')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/Anorov/PySocks/archive/$pkgver.tar.gz")
sha512sums=('6b670b2246c2c3c8d0b5424f6fb65cbab1d030d58b15f99db9eb232ead5e853c52af637f3d429e3fe88c70792f3b4913219b6694fa0e81318cdd40c41c1b17d6')
prepare() {
cp -a PySocks-$pkgver{,-py2}
}
build() {
cd "$srcdir"/PySocks-$pkgver
python3 setup.py build
cd "$srcdir"/PySocks-$pkgver-py2
python2 setup.py build
}
package_python3-pysocks() {
depends=('python3')
cd PySocks-$pkgver
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}
package_python2-pysocks() {
depends=('python2')
cd PySocks-$pkgver-py2
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}
......@@ -2,7 +2,7 @@
pkgbase=python-pytest-httpbin
pkgname=('python3-pytest-httpbin' 'python2-pytest-httpbin')
_pypiname=pytest-httpbin
pkgver=0.2.0
pkgver=0.2.3
pkgrel=1
pkgdesc='A py.test fixture for httpbining code'
arch=('any')
......
pkgbase=python-pytest-runner
pkgname=('python3-pytest-runner' 'python2-pytest-runner')
pkgver=2.7
pkgver=3.0
pkgrel=1
pkgdesc="Invoke py.test as distutils command with dependency resolution"
arch=('any')
......
......@@ -2,7 +2,7 @@ pkgbase=python-pyxattr
pkgname=('python2-pyxattr' 'python3-pyxattr')
_pkgname=pyxattr
pkgver=0.6.0
pkgrel=1
pkgrel=2
pkgdesc='A python extension module that allows you to manipulate the extended attributes.'
arch=('x86_64')
url='http://pyxattr.k1024.org/'
......
pkgbase=python-pyzmq
pkgname=('python2-pyzmq' 'python3-pyzmq')
pkgver=15.2.0
pkgrel=2
pkgver=16.0.2
pkgrel=1
pkgdesc="Python bindings for zeromq, written in Cython"
arch=('x86_64')
url="http://www.zeromq.org/bindings:python"
license=('LGPL')
depends=('zeromq' 'python3')
makedepends=('python3' 'python2' 'zeromq')
#checkdepends=('python3-nose' 'python2-nose' 'python3-tornado' 'python2-tornado')
#source=(https://github.com/zeromq/pyzmq/downloads/pyzmq-$pkgver.tar.gz)
source=(https://pypi.python.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz)
sha256sums=('2dafa322670a94e20283aba2a44b92134d425bd326419b68ad4db8d0831a26ec')
source=("https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz")
sha256sums=('0322543fff5ab6f87d11a8a099c4c07dd8a1719040084b6ce9162bcdf5c45c9d')
prepare() {
cd "$srcdir"
......
......@@ -3,7 +3,7 @@
_pkgbase=regex
pkgbase=python-regex
pkgname=('python3-regex' 'python2-regex')
pkgver=2017.06.07
pkgver=2017.09.23
pkgrel=1
pkgdesc="Alternative python regular expression module."
arch=('any')
......@@ -12,7 +12,7 @@ license=('Python')
makedepends=('python3-setuptools' 'python2-setuptools' 'python3' 'python2')
options=(!emptydirs)
source=("https://pypi.io/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
sha256sums=('e45784bbe5a0ce4a954fbc5e0f72909798257241147271d4906bc617fd59261b')
sha256sums=('80166c9e21c0171c7b502035f3ba25f43b5122def387ca6ba9706b6892fed7aa')
package_python2-regex() {
depends=('python2')
......
......@@ -2,7 +2,7 @@
pkgbase=python-requests
pkgname=(python2-requests python3-requests)
pkgver=2.9.1
pkgver=2.18.4
pkgrel=1
_libname=requests
pkgdesc="Requests is an Apache2 Licensed HTTP library, written in Python, for human beings."
......@@ -12,22 +12,16 @@ makedepends=('python2-setuptools' 'python3-setuptools' 'python3-chardet' 'python
checkdepends=('python3-pytest-httpbin' 'python2-pytest-httpbin')
license=('Apache')
arch=('any')
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz"
certs.patch)
sha256sums=('c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f'
'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
sha256sums=('b068ccce3b739a29cbf72148b0ff4be3d80198fb7cdbd63066f7384bb56ef917'
'3fa0c8ef2018ef0987d2daff79765b99abd99c539f2ec1241bcf9c31b1a4fd75')
prepare() {
cd "$srcdir"/requests-$pkgver
patch -p1 -i "$srcdir"/certs.patch
sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
rm -f requests/cacert.pem
rm -r requests/packages/{urllib3,chardet}
sed -e '/packages.chardet/d' \
-e '/packages.urllib3/d' \
sed -e '/certifi/d' \
-i setup.py
patch -p1 -i "$srcdir"/certs.patch
cd "$srcdir"
cp -a requests-$pkgver{,-py2}
......
diff --git a/requests/certs.py b/requests/certs.py
index 07e6475..33db011 100644
index d1a378d7..4e0bffd4 100644
--- a/requests/certs.py
+++ b/requests/certs.py
@@ -19,7 +19,7 @@ except ImportError:
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"
@@ -12,7 +12,8 @@ If you are packaging Requests, e.g., for a Linux distribution or a managed
environment, you can change the definition of where() to return a separately
packaged CA bundle.
"""
-from certifi import where
+def where():
+ return "/etc/ssl/certs/ca-certificates.crt"
if __name__ == '__main__':
print(where())
......@@ -6,17 +6,17 @@
pkgbase=python-urllib3
pkgname=(python3-urllib3 python2-urllib3 python-urllib3-doc)
pkgver=1.14
pkgver=1.22
pkgrel=1
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
arch=("any")
url="https://github.com/shazow/urllib3"
license=("MIT")
makedepends=('python3-setuptools' 'python2-setuptools' 'python2-sphinx' 'git'
'python3-pyasn1'
'python2-pyasn1' 'python3-pyopenssl' 'python2-pyopenssl')
checkdepends=('python3-nose' 'python2-nose' 'python3-mock' 'python2-mock'
'python3-tornado' 'python2-tornado')
makedepends=('python3-setuptools' 'python2-setuptools' 'python2-sphinx' 'python3-ndg-httpsclient'
'python2-ndg-httpsclient' 'python3-pyasn1' 'python2-pyasn1' 'python3-pyopenssl'
'python2-pyopenssl' 'python3-pysocks' 'python2-pysocks' 'python3-mock' 'python2-mock')
#checkdepends=('python3-nose' 'python2-nose' 'python3-mock' 'python2-mock'
# 'python3-tornado' 'python2-tornado')
source=("git+https://github.com/shazow/urllib3.git#tag=$pkgver")
md5sums=('SKIP')
......@@ -36,18 +36,19 @@ build() {
make SPHINXBUILD=sphinx-build2 html
}
check() {