diff options
Diffstat (limited to 'abs/core/python_modules')
20 files changed, 417 insertions, 174 deletions
diff --git a/abs/core/python_modules/__changelog b/abs/core/python_modules/__changelog deleted file mode 100644 index 4a02fe3..0000000 --- a/abs/core/python_modules/__changelog +++ /dev/null @@ -1 +0,0 @@ -removed python from requirement --jm diff --git a/abs/core/python_modules/pycairo/PKGBUILD b/abs/core/python_modules/pycairo/PKGBUILD deleted file mode 100644 index 9adfcb5..0000000 --- a/abs/core/python_modules/pycairo/PKGBUILD +++ /dev/null @@ -1,26 +0,0 @@ -# $Id: PKGBUILD 96553 2010-10-22 08:47:59Z jgc $ -# Maintainer: Jan de Groot <jgc@archlinux.org> - -pkgname=pycairo -pkgver=1.8.10 -pkgrel=4 -pkgdesc="Python bindings for the cairo graphics library" -arch=('i686' 'x86_64') -license=('LGPL' 'MPL') -depends=('python2' 'cairo>=1.8.10') -options=('!libtool') -source=(http://cairographics.org/releases/py2cairo-${pkgver}.tar.gz) -url="http://www.cairographics.org/pycairo" -md5sums=('87421a6a70304120555ba7ba238f3dc3') - -build() { - cd "${srcdir}/${pkgname}-${pkgver}" - PYTHON=python2 ./configure --prefix=/usr - make || return 1 -} - -package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install || return 1 -} - diff --git a/abs/core/python_modules/pygobject/PKGBUILD b/abs/core/python_modules/pygobject/PKGBUILD index 32e4c31..fc8f1c7 100644 --- a/abs/core/python_modules/pygobject/PKGBUILD +++ b/abs/core/python_modules/pygobject/PKGBUILD @@ -3,34 +3,33 @@ pkgbase=pygobject pkgname=(python2-gobject pygobject-devel) -pkgver=3.12.1 +pkgver=3.18.2 pkgrel=1 arch=(i686 x86_64) url="https://live.gnome.org/PyGObject" license=(LGPL) makedepends=(python2 python2-cairo gobject-introspection gnome-common) -source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz) -sha256sums=('da5fe04759e862d347b26b53a6aea0affa7cbe858b7004475fa8c7929496da35') +source=(https://download.gnome.org/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz) +sha256sums=('2a3cad1517916b74e131e6002c3824361aee0671ffb0d55ded119477fc1c2c5f') prepare() { mkdir build-py2 build-py3 devel cd ${pkgbase}-${pkgver} - sed -i '/Werror=format/d' configure # gcc 4.8 } build() { cd build-py2 - ../${pkgbase}-${pkgver}/autogen.sh --prefix=/usr --with-python=/usr/bin/python2 + ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python2 make # cd ../build-py3 -# ../${pkgbase}-${pkgver}/configure --prefix=/usr - make +# ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python +# make } #package_python-gobject() { # pkgdesc="Python 3 bindings for GObject" -# depends=('gobject-introspection' 'python-cairo' "pygobject-devel=$pkgver") +# depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python' 'cairo') # cd build-py3 # make DESTDIR="$pkgdir" install @@ -39,15 +38,17 @@ build() { package_python2-gobject() { pkgdesc="Python 2 bindings for GObject" - depends=('gobject-introspection' 'python2-cairo' "pygobject-devel=$pkgver") + depends=('gobject-introspection-runtime' "pygobject-devel=$pkgver" 'python2' 'cairo') cd build-py2 make DESTDIR="$pkgdir" install mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel" + python2 -m compileall "$pkgdir"//usr/lib/python2.7/site-packages/gi } package_pygobject-devel() { pkgdesc="Development files for the pygobject bindings" + cd "devel" mkdir -p "$pkgdir"/usr/{include,lib} mv include "$pkgdir/usr/" diff --git a/abs/core/python_modules/pygobject2/PKGBUILD b/abs/core/python_modules/pygobject2/PKGBUILD index f4e921e..ba3d035 100644 --- a/abs/core/python_modules/pygobject2/PKGBUILD +++ b/abs/core/python_modules/pygobject2/PKGBUILD @@ -4,12 +4,11 @@ pkgbase=pygobject2 pkgname=(python2-gobject2 pygobject2-devel) pkgver=2.28.6 -pkgrel=9 +pkgrel=12 arch=(i686 x86_64) url="http://www.pygtk.org/" license=(LGPL) makedepends=(python2 git) -options=('!libtool') # pygobject-2-28 branch: https://git.gnome.org/browse/pygobject/log/?h=pygobject-2-28 source=('git://git.gnome.org/pygobject#commit=9456ba7') @@ -19,8 +18,11 @@ prepare() { cd pygobject autoreconf -fi - cd .. - cp -a pygobject python2-build + cp -a . ../python2-build + + find -O3 ../python2-build \ + \( -name '*.py' -o -name '*.py.in' \) \ + -exec sed -i '1s|python$|&2|' {} + } build() { @@ -30,22 +32,22 @@ build() { make cd ../pygobject - ./configure --prefix=/usr --disable-introspection - make +# ./configure --prefix=/usr --disable-introspection +# make } -package_python-gobject2() { - pkgdesc="Python 3 bindings for GObject2" - depends=(glib2 pygobject2-devel python) - replaces=(py3gobject) - provides=("py3gobject=$pkgver") +#package_python-gobject2() { +# pkgdesc="Python 3 bindings for GObject2" +# depends=(glib2 pygobject2-devel python) +# replaces=(py3gobject) +# provides=("py3gobject=$pkgver") - cd pygobject - make DESTDIR="$pkgdir" install +# cd pygobject +# make DESTDIR="$pkgdir" install # Delete devel stuff - rm -r "$pkgdir"/usr/{include,lib/pkgconfig,share/{gtk-doc,pygobject/xsl}} -} +# rm -r "$pkgdir"/usr/{include,lib/pkgconfig,share/{gtk-doc,pygobject/xsl}} +#} package_python2-gobject2() { pkgdesc="Python 2 bindings for GObject2" @@ -56,9 +58,6 @@ package_python2-gobject2() { cd python2-build make DESTDIR="$pkgdir" install - find "$pkgdir"/usr/share/pygobject -name '*.py' -exec \ - sed -i '1s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|' {} + - rm -r "$pkgdir"/usr/share/gtk-doc # Split devel stuff diff --git a/abs/core/python_modules/pyopenssl/PKGBUILD b/abs/core/python_modules/pyopenssl/PKGBUILD index 63eeaaf..d99cafa 100644 --- a/abs/core/python_modules/pyopenssl/PKGBUILD +++ b/abs/core/python_modules/pyopenssl/PKGBUILD @@ -1,49 +1,59 @@ # $Id$ -# Maintainer : Ionut Biru<ibiru@archlinux.org> +# Maintainer : Felix Yan <felixonmars@archlinux.org> +# Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgbase=pyopenssl pkgname=('python2-pyopenssl') -pkgver=0.14 -pkgrel=3 +pkgver=16.0.0 +pkgrel=1 arch=('any') url="http://pypi.python.org/pypi/pyOpenSSL" license=('LGPL2.1') -makedepends=('python2-setuptools' 'openssl' 'python2-six' 'python2-cryptography') -source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz) -md5sums=('8579ff3a1d858858acfba5f046a4ddf7') +makedepends=('openssl' 'python2-setuptools' 'python2-cryptography') +checkdepends=('python2-pytest-runner') +source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-$pkgver.tar.gz) +md5sums=('9587d813dcf656e9f2760e41a3682dc3') -build() { - cd "${srcdir}" - cp -a "pyOpenSSL-${pkgver}"{,-python2} +prepare() { + cp -a pyOpenSSL-$pkgver{,-py2} - #build python 3 module - cd "pyOpenSSL-${pkgver}" -# python setup.py build + export LC_CTYPE=en_US.UTF-8 +} + +build () { + cd "$srcdir"/pyOpenSSL-$pkgver +# python setup.py build + + cd "$srcdir"/pyOpenSSL-$pkgver-py2 + python2 setup.py build +} + +check () { + ( + cd "$srcdir"/pyOpenSSL-$pkgver + python setup.py ptr - #build python 2 module - cd ../"pyOpenSSL-${pkgver}-python2" - python2 setup.py build + cd "$srcdir"/pyOpenSSL-$pkgver-py2 + python2 setup.py ptr + ) || warning "Tests failed due to missing SSLv3_METHOD" } -#package_python-pyopenssl(){ -# pkgdesc="Python3 wrapper module around the OpenSSL library" -# depends=('python>=3.3' 'openssl' 'python-six' 'python-cryptography') -# replaces=('pyopenssl') -# provides=('pyopenssl') -# conflicts=('pyopenssl') +package_python-pyopenssl(){ + pkgdesc="Python3 wrapper module around the OpenSSL library" + depends=('openssl' 'python-six' 'python-cryptography') -# cd "${srcdir}/pyOpenSSL-${pkgver}" -# python setup.py install --root "${pkgdir}" --optimize=1 -#} + cd "$srcdir"/pyOpenSSL-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} package_python2-pyopenssl(){ - pkgdesc="Python2 wrapper module around the OpenSSL library" - depends=('python2>=2.7' 'openssl' 'python2-six' 'python2-cryptography') - replaces=('pyopenssl') - provides=('pyopenssl') - conflicts=('pyopenssl') - - cd "${srcdir}/pyOpenSSL-${pkgver}-python2" - python2 setup.py install --root "${pkgdir}" --optimize=1 + pkgdesc="Python2 wrapper module around the OpenSSL library" + depends=('openssl' 'python2-six' 'python2-cryptography') + replaces=('pyopenssl') + provides=('pyopenssl') + conflicts=('pyopenssl') + + cd "$srcdir"/pyOpenSSL-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 } diff --git a/abs/core/python_modules/pyopenssl/__changelog b/abs/core/python_modules/pyopenssl/__changelog index 488d3cf..3de0e7a 100644 --- a/abs/core/python_modules/pyopenssl/__changelog +++ b/abs/core/python_modules/pyopenssl/__changelog @@ -1 +1,2 @@ PKGBUILD: rm py 3 stuff +PKGBUILD: move provides/replaces/conflicts to python2-pyopenssl diff --git a/abs/core/python_modules/python-cffi/PKGBUILD b/abs/core/python_modules/python-cffi/PKGBUILD index 5f75a0e..5a4ef04 100644 --- a/abs/core/python_modules/python-cffi/PKGBUILD +++ b/abs/core/python_modules/python-cffi/PKGBUILD @@ -1,44 +1,53 @@ # $Id$ -# Maintainer: Felix Yan <felixonmars@gmail.com> +# Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: lilydjwg <lilydjwg@gmail.com> -_name=cffi -pkgbase=python-$_name -pkgname=(python2-$_name) -pkgver=0.8.2 -pkgrel=4 +pkgbase=python-cffi +pkgname=(python2-cffi) +pkgver=1.5.2 +_revision=4640c7bfb3166763943b428bc7ae9d3585e45c34 +pkgrel=1 pkgdesc="Foreign Function Interface for Python calling C code" arch=('i686' 'x86_64') url="http://cffi.readthedocs.org/" license=('MIT') -makedepends=('python2-setuptools' 'python2-pycparser') -md5sums=('37fc88c62f40d04e8a18192433f951ec') -source=("http://pypi.python.org/packages/source/c/${_name}/${_name}-${pkgver}.tar.gz") +makedepends=('python2-setuptools' 'python2-pycparser' 'mercurial') +checkdepends=('python2-pytest-runner') +source=("hg+https://felixonmars@bitbucket.org/cffi/cffi#revision=$_revision") +sha512sums=('SKIP') prepare() { - cp -r $_name-$pkgver{,-py2} + cp -a cffi{,-py2} } build() { -# cd "$srcdir/$_name-$pkgver" +# cd "$srcdir/cffi" # python3 setup.py build - cd "$srcdir/$_name-$pkgver-py2" + cd "$srcdir/cffi-py2" python2 setup.py build } -#package_python-cffi() { -# depends=('python' 'python-pycparser') +check() { + cd "$srcdir/cffi" + python3 setup.py ptr -# cd "$srcdir/$_name-$pkgver" -# python3 setup.py install --root="$pkgdir/" --optimize=1 -# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -#} + cd "$srcdir/cffi-py2" + python2 setup.py ptr +} + +package_python-cffi() { + depends=('python-pycparser') + + cd "$srcdir/cffi" + python3 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} package_python2-cffi() { - depends=('python2' 'python2-pycparser') + depends=('python2-pycparser') - cd "$srcdir/$_name-$pkgver-py2" + cd "$srcdir/cffi-py2" python2 setup.py install --root="$pkgdir/" --optimize=1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } diff --git a/abs/core/python_modules/python-cryptography/PKGBUILD b/abs/core/python_modules/python-cryptography/PKGBUILD index f916ada..d336c94 100644 --- a/abs/core/python_modules/python-cryptography/PKGBUILD +++ b/abs/core/python_modules/python-cryptography/PKGBUILD @@ -1,54 +1,52 @@ # $Id$ -# Maintainer: Felix Yan <felixonmars@gmail.com> +# Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-cryptography pkgname=('python2-cryptography') -pkgver=0.3 +pkgver=1.3.1 pkgrel=1 pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers" arch=('i686' 'x86_64') license=('Apache') url="http://pypi.python.org/pypi/cryptography" -makedepends=('python2-setuptools' 'python2-six' 'python2-cffi') -checkdepends=('python2-pytest' 'python2-cryptography-vectors' - 'python2-iso8601' 'python2-pretend') -source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-${pkgver}.tar.gz") -md5sums=('1a9f2520acfef9489ac42fdc9a7be441') +makedepends=('python2-setuptools' 'python2-six' 'python2-cffi' 'python2-enum34' + 'python2-pyasn1' 'python2-idna' 'python2-ipaddress') +checkdepends=('python2-pytest-runner' "python2-cryptography-vectors=$pkgver" + 'python2-iso8601' 'python2-pretend' 'python2-pyasn1-modules' + 'python2-hypothesis') +source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-$pkgver.tar.gz") +md5sums=('bc8148d2ff2d80fef8ef2d2e856b3a7f') -check() { - # Check python3 module -# cd "${srcdir}"/cryptography-${pkgver} -# python3 setup.py test - - # Check python2 module - cd "${srcdir}"/cryptography-${pkgver}-python2 - python2 setup.py test -} - prepare() { - cp -a cryptography-${pkgver}{,-python2} + cp -a cryptography-${pkgver}{,-python2} } build() { - # Build python 3 module - cd cryptography-${pkgver} -# python3 setup.py build + cd "$srcdir"/cryptography-$pkgver +# python setup.py build - # Build python 2 module - cd ../cryptography-${pkgver}-python2 + cd "$srcdir"/cryptography-$pkgver-python2 python2 setup.py build } + +check() { + cd "$srcdir"/cryptography-$pkgver + PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" python setup.py ptr + + cd "$srcdir"/cryptography-$pkgver-python2 + PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 setup.py ptr +} -#package_python-cryptography() { -# depends=('python' 'python-six' 'python-cffi') +package_python-cryptography() { + depends=('python-pyasn1' 'python-six' 'python-cffi' 'python-idna') -# cd cryptography-${pkgver} -# python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build -#} + cd cryptography-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} package_python2-cryptography() { - depends=('python2' 'python2-six' 'python2-cffi') + depends=('python2-pyasn1' 'python2-six' 'python2-cffi' 'python2-enum34' 'python2-idna' 'python2-ipaddress') - cd cryptography-${pkgver}-python2 - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + cd cryptography-$pkgver-python2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build } diff --git a/abs/core/python_modules/python-idna/PKGBUILD b/abs/core/python_modules/python-idna/PKGBUILD new file mode 100644 index 0000000..1d18ce5 --- /dev/null +++ b/abs/core/python_modules/python-idna/PKGBUILD @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-idna +pkgname=('python2-idna') +pkgver=2.1 +pkgrel=1 +pkgdesc="Internationalized Domain Names in Applications (IDNA)" +arch=('any') +license=('BSD') +url="https://github.com/kjd/idna" +makedepends=('python2-setuptools') +source=("https://pypi.python.org/packages/source/i/idna/idna-$pkgver.tar.gz") +md5sums=('f6473caa9c5e0cc1ad3fd5d04c3c114b') + +prepare() { + cp -a idna-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/idna-$pkgver +# python setup.py build + + cd "$srcdir"/idna-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/idna-$pkgver + python setup.py test + + cd "$srcdir"/idna-$pkgver-py2 + python2 setup.py test +} + +package_python-idna() { + depends=('python') + + cd idna-$pkgver + python 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 +} diff --git a/abs/core/python_modules/python-idna/__changelog b/abs/core/python_modules/python-idna/__changelog new file mode 100644 index 0000000..60db758 --- /dev/null +++ b/abs/core/python_modules/python-idna/__changelog @@ -0,0 +1 @@ +PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-pyasn1/PKGBUILD b/abs/core/python_modules/python-pyasn1/PKGBUILD new file mode 100644 index 0000000..ae8b69c --- /dev/null +++ b/abs/core/python_modules/python-pyasn1/PKGBUILD @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgbase=python-pyasn1 +pkgname=('python2-pyasn1') +pkgver=0.1.9 +pkgrel=1 +arch=('any') +url="http://sourceforge.net/projects/pyasn1/" +license=('BSD') +makedepends=('python2-setuptools') +replaces=('pyasn1') +provides=('pyasn1') +source=(http://downloads.sourceforge.net/sourceforge/pyasn1/pyasn1-${pkgver}.tar.gz) +sha1sums=('d19599c5d9d039ead21ffcd1a2392c29a838ae03') + +check() { + cd pyasn1-${pkgver} + python2 setup.py test + python setup.py test +} + +package_python-pyasn1() { + pkgdesc="ASN.1 library for Python 3" + depends=('python') + + cd pyasn1-${pkgver} + python setup.py install --root="${pkgdir}" + install -D -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-pyasn1() { + pkgdesc="ASN.1 library for Python 2" + depends=('python2') + + cd pyasn1-${pkgver} + python2 setup.py install --root="${pkgdir}" + install -D -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/abs/core/python_modules/python-pyasn1/__changelog b/abs/core/python_modules/python-pyasn1/__changelog new file mode 100644 index 0000000..60db758 --- /dev/null +++ b/abs/core/python_modules/python-pyasn1/__changelog @@ -0,0 +1 @@ +PKGBUILD: remove py3 stuff diff --git a/abs/core/python_modules/python-pycurl/PKGBUILD b/abs/core/python_modules/python-pycurl/PKGBUILD index 9b70523..10f640e 100644 --- a/abs/core/python_modules/python-pycurl/PKGBUILD +++ b/abs/core/python_modules/python-pycurl/PKGBUILD @@ -1,22 +1,75 @@ -# $Id: PKGBUILD 150558 2012-02-18 14:39:59Z pierre $ -# Maintainer: +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> -pkgname=python-pycurl -pkgver=7.19.0 -pkgrel=6 -pkgdesc="A Python interface to libcurl" +_pypiname=pycurl +pkgbase=python-$_pypiname +pkgname=('python2-pycurl') +pkgver=7.43.0 +pkgrel=1 arch=('i686' 'x86_64') -url="http://pycurl.sourceforge.net" -license=('GPL') -depends=('python2' 'curl') -replaces=('pycurl') -provides=('pycurl') -source=("http://pycurl.sourceforge.net/download/pycurl-${pkgver}.tar.gz") -md5sums=('919d58fe37e69fe87ce4534d8b6a1c7b') - -package() { - cd "${srcdir}"/pycurl-${pkgver} - python2 setup.py install --curl-config=/usr/bin/curl-config --prefix ${pkgdir}/usr +url="http://pycurl.sourceforge.net/" +license=('LGPL' 'MIT') +makedepends=('python2' 'curl' 'git') +checkdepends=('python2-bottle' 'python2-nose-show-skipped' + 'vsftpd' 'python2-flaky' 'python2-pyflakes') +source=("git+https://github.com/pycurl/pycurl.git#tag=REL_${pkgver//./_}") +sha1sums=('SKIP') + +prepare() { + cp -a $_pypiname{,-py2} + + cd "$srcdir/$_pypiname" + find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python3|" {} + + sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python-pycurl"/' setup.py + sed -e "s/nosetests/nosetests3/" -e "s/python/python3/" -i tests/run.sh + + cd "$srcdir/$_pypiname-py2" + find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python2|" {} + + sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python2-pycurl"/' setup.py + sed -e "s/nosetests/nosetests2/" -e "s/python/python2/" -i tests/run.sh + sed -e "s/pyflakes/pyflakes-python2/" -i Makefile +} + +build() { +# cd "$srcdir/$_pypiname" +# make +# python3 setup.py build --with-ssl + + cd "$srcdir/$_pypiname-py2" + make + python2 setup.py build --with-ssl +} + +check() { + export PYCURL_VSFTPD_PATH=vsftpd + # We don't have HTTP2 enabled + + cd "$srcdir/$_pypiname" + PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" make test || warning "Tests failed" + + cd "$srcdir/$_pypiname-py2" + PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" make PYTHON=python2 NOSETESTS=nosetests2 test || warning "Tests failed" +} + +package_python-pycurl() { + pkgdesc="A Python 3.x interface to libcurl" + depends=('python' 'curl') + + cd $_pypiname + python setup.py install -O1 --root="${pkgdir}" + install -D -m644 COPYING-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-pycurl() { + pkgdesc="A Python 2.x interface to libcurl" + depends=('python2' 'curl') + provides=('python-pycurl') + replaces=('python-pycurl') + conflicts=('python-pycurl') + + cd $_pypiname-py2 + python2 setup.py install -O1 --root="${pkgdir}" + install -D -m644 COPYING-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } diff --git a/abs/core/python_modules/python-pycurl/__changelog b/abs/core/python_modules/python-pycurl/__changelog new file mode 100644 index 0000000..a7b93d7 --- /dev/null +++ b/abs/core/python_modules/python-pycurl/__changelog @@ -0,0 +1,2 @@ +PKGBUILD: rm py 3 stuff + diff --git a/abs/core/python_modules/python-simplejson/PKGBUILD b/abs/core/python_modules/python-simplejson/PKGBUILD index 73dc754..d5273f5 100644 --- a/abs/core/python_modules/python-simplejson/PKGBUILD +++ b/abs/core/python_modules/python-simplejson/PKGBUILD @@ -6,24 +6,24 @@ pkgbase=python-simplejson pkgname=('python2-simplejson') -pkgver=3.6.5 +pkgver=3.8.2 pkgrel=1 pkgdesc='Simple, fast, extensible JSON encoder/decoder for Python' license=('MIT') arch=('x86_64' 'i686') -url='http://undefined.org/python/#simplejson' +url='https://github.com/simplejson/simplejson' makedepends=('python2-setuptools' 'git') source=("git://github.com/simplejson/simplejson.git#tag=v$pkgver") md5sums=('SKIP') -#package_python-simplejson() { -# depends=('python') +package_python-simplejson() { + depends=('python') -# cd simplejson -# python setup.py install --root="$pkgdir" -# install -Dm644 "$srcdir/simplejson/LICENSE.txt" \ -# "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -#} + cd simplejson + python setup.py install --root="$pkgdir" + install -Dm644 "$srcdir/simplejson/LICENSE.txt" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} package_python2-simplejson() { depends=('python2') diff --git a/abs/core/python_modules/python2-cairo/PKGBUILD b/abs/core/python_modules/python2-cairo/PKGBUILD index 0f2fb14..574eca2 100644 --- a/abs/core/python_modules/python2-cairo/PKGBUILD +++ b/abs/core/python_modules/python2-cairo/PKGBUILD @@ -1,14 +1,13 @@ -# $Id: PKGBUILD 122022 2011-05-01 17:05:32Z angvp $ +# $Id$ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=python2-cairo pkgver=1.10.0 -pkgrel=1 +pkgrel=3 pkgdesc="Python2 bindings for the cairo graphics library" arch=('i686' 'x86_64') license=('LGPL' 'MPL') depends=('python2' 'cairo') -options=('!libtool') provides=("pycairo=${pkgver}") conflicts=('pycairo') replaces=('pycairo') diff --git a/abs/core/python_modules/python2-enum34/PKGBUILD b/abs/core/python_modules/python2-enum34/PKGBUILD new file mode 100644 index 0000000..24853ad --- /dev/null +++ b/abs/core/python_modules/python2-enum34/PKGBUILD @@ -0,0 +1,26 @@ +# $Id$ +# Maintainer: Maxime Gauduin <alucryd@gmail.com> +# Contributor: Schala <schalaalexiazeal@gmail.com> + +pkgname=python2-enum34 +pkgver=1.1.2 +pkgrel=1 +pkgdesc='Python 3.4 Enum backported' +arch=('any') +url='http://pypi.python.org/pypi/enum34' +license=('BSD') +depends=('python2') +makedepends=('python2-setuptools') +source=("https://pypi.python.org/packages/source/e/enum34/enum34-${pkgver}.tar.gz") +sha256sums=('2475d7fcddf5951e92ff546972758802de5260bf409319a9f1934e6bbc8b1dc7') + +package() { + cd enum34-${pkgver} + + python2 setup.py install --root="${pkgdir}" --optimize='1' + + install -dm 755 "${pkgdir}"/usr/share/licenses/python2-enum34 + install -m 644 enum/LICENSE "${pkgdir}"/usr/share/licenses/python2-enum34/ +} + +# vim: ts=2 sw=2 et: diff --git a/abs/core/python_modules/python2-ipaddress/LICENSE b/abs/core/python_modules/python2-ipaddress/LICENSE new file mode 100644 index 0000000..41bd16b --- /dev/null +++ b/abs/core/python_modules/python2-ipaddress/LICENSE @@ -0,0 +1,50 @@ +This package is a modified version of cpython's ipaddress module. +It is therefore distributed under the PSF license, as follows: + +PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 +-------------------------------------------- + +1. This LICENSE AGREEMENT is between the Python Software Foundation +("PSF"), and the Individual or Organization ("Licensee") accessing and +otherwise using this software ("Python") in source or binary form and +its associated documentation. + +2. Subject to the terms and conditions of this License Agreement, PSF hereby +grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, +analyze, test, perform and/or display publicly, prepare derivative works, +distribute, and otherwise use Python alone or in any derivative version, +provided, however, that PSF's License Agreement and PSF's notice of copyright, +i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, +2011, 2012, 2013, 2014 Python Software Foundation; All Rights Reserved" are +retained in Python alone or in any derivative version prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python. + +4. PSF is making Python available to Licensee on an "AS IS" +basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. Nothing in this License Agreement shall be deemed to create any +relationship of agency, partnership, or joint venture between PSF and +Licensee. This License Agreement does not grant permission to use PSF +trademarks or trade name in a trademark sense to endorse or promote +products or services of Licensee, or any third party. + +8. By copying, installing or otherwise using Python, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. diff --git a/abs/core/python_modules/python2-ipaddress/PKGBUILD b/abs/core/python_modules/python2-ipaddress/PKGBUILD new file mode 100644 index 0000000..d5a0bd5 --- /dev/null +++ b/abs/core/python_modules/python2-ipaddress/PKGBUILD @@ -0,0 +1,28 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Nikolaus Brandt <sua-aur-661bbb3b@brandt-n.eu> + +pkgname=python2-ipaddress +pkgver=1.0.16 +pkgrel=1 +pkgdesc="IPv4/IPv6 manipulation library" +arch=(any) +url="https://github.com/phihag/ipaddress" +license=('custom:PSF') +depends=('python2') +source=("https://pypi.python.org/packages/source/i/ipaddress/ipaddress-$pkgver.tar.gz" + LICENSE) +sha512sums=('50baf15f185b039037eef7b047d5a0ffbe1b335d2d94c218b6a2012ae1ba89c5e5c4f64667d8a623e4e4e7598d90c8a7caa8327ea4c155260ab90384f86a6c89' + '5cc59a125412b0eb35f05d40756db050805fc1bd5729f350796644ad92b8117f8d3ed3c7cf6ab8b072518706bf95a1d40f016d065726a1296e19ea09582ec385') + +check() { + # Not included in release tarball + cd ipaddress-$pkgver + # python2 test_ipaddress.py +} + +package() { + cd ipaddress-$pkgver + python2 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/abs/core/python_modules/urlgrabber/PKGBUILD b/abs/core/python_modules/urlgrabber/PKGBUILD index f82aa85..77f188e 100644 --- a/abs/core/python_modules/urlgrabber/PKGBUILD +++ b/abs/core/python_modules/urlgrabber/PKGBUILD @@ -1,18 +1,21 @@ -# $Id: PKGBUILD 66686 2012-02-27 11:56:32Z cbrannon $ +# $Id$ # Maintainer: Chris Brannon <cmbrannon79@gmail.com> # Contributor: Pat Rondon <pmr@@patrondon.org> + pkgname=urlgrabber -pkgver=3.9.1 -pkgrel=3 +pkgver=3.10.1 +pkgrel=2 pkgdesc="A high-level cross-protocol url-grabber and Python library" url="http://urlgrabber.baseurl.org/" license=('LGPL') arch=(any) -depends=(python2 python-pycurl) +depends=(python2 python2-pycurl) source=(http://$pkgname.baseurl.org/download/$pkgname-$pkgver.tar.gz) +md5sums=('1f5dc63805623cc473e06204fd240bb2') package() { - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 - } -md5sums=('00c8359bf71062d0946bacea521f80b4') + cd "$srcdir/$pkgname-$pkgver" + sed -i 's/libexec/lib/' setup.py urlgrabber/grabber.py + sed -i '1s/python/&2/' scripts/urlgrabber-ext-down + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 +} |