diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-07-16 04:13:07 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-07-16 04:13:07 (GMT) |
commit | fe4647560ee433d6735ebe84b584d5faf1865809 (patch) | |
tree | 56fe6355c43505a0352bfbf92686d1fc2d50e7f0 /abs/core/python_modules | |
parent | a48ba24dc55c953d3b941dad26c0cc89c363c102 (diff) | |
download | linhes_pkgbuild-fe4647560ee433d6735ebe84b584d5faf1865809.zip linhes_pkgbuild-fe4647560ee433d6735ebe84b584d5faf1865809.tar.gz linhes_pkgbuild-fe4647560ee433d6735ebe84b584d5faf1865809.tar.bz2 |
python-pysocks: initial inclusion. dep of flexget
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r-- | abs/core/python_modules/python-pysocks/PKGBUILD | 64 | ||||
-rw-r--r-- | abs/core/python_modules/python-pysocks/__changelog | 2 |
2 files changed, 66 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pysocks/PKGBUILD b/abs/core/python_modules/python-pysocks/PKGBUILD new file mode 100644 index 0000000..e9e91f2 --- /dev/null +++ b/abs/core/python_modules/python-pysocks/PKGBUILD @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Michael Schubert <mschu.dev at gmail> + +pkgbase=python-pysocks +pkgname=(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=('python2-setuptools') +checkdepends=('lib32-glibc' 'python2-twisted' 'python2-tornado') +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 +# python setup.py build + + cd "$srcdir"/PySocks-$pkgver-py2 + python2 setup.py build +} + +# Tests disabled as it requires external services to run +check_disabled() { + cd "$srcdir"/PySocks-$pkgver-py2/test + python2 socks4server.py & + _SOCKS4SERVER=$! + python2 httpproxy.py & + _HTTPPROXY=$1 + + ./mocks start + + sleep 1 + + python2 sockstest.py + +# cd "$srcdir"/PySocks-$pkgver/test +# python sockstest.py + + ./mocks shutdown + + kill $_SOCKS4SERVER $_HTTPPROXY +} + +package_python-pysocks() { + depends=('python') + + cd PySocks-$pkgver + python 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 +} diff --git a/abs/core/python_modules/python-pysocks/__changelog b/abs/core/python_modules/python-pysocks/__changelog new file mode 100644 index 0000000..4f818ef --- /dev/null +++ b/abs/core/python_modules/python-pysocks/__changelog @@ -0,0 +1,2 @@ +PKGBUILD: don't build py 3 stuff + |