diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-07-16 16:48:52 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-07-16 16:48:52 (GMT) |
commit | 6483e03c529d26d4d4ce8ea5d23f83ae0b52833b (patch) | |
tree | 5956d73f7d6af6d042b7b64173370ea55ec68b36 | |
parent | d3e2c5334d98df60430f48fea33db6a32c015546 (diff) | |
download | linhes_pkgbuild-6483e03c529d26d4d4ce8ea5d23f83ae0b52833b.zip linhes_pkgbuild-6483e03c529d26d4d4ce8ea5d23f83ae0b52833b.tar.gz linhes_pkgbuild-6483e03c529d26d4d4ce8ea5d23f83ae0b52833b.tar.bz2 |
python-pytz: initial inclusion. dep of flexget
-rw-r--r-- | abs/core/python_modules/python-pytz/PKGBUILD | 58 | ||||
-rw-r--r-- | abs/core/python_modules/python-pytz/__changelog | 1 |
2 files changed, 59 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pytz/PKGBUILD b/abs/core/python_modules/python-pytz/PKGBUILD new file mode 100644 index 0000000..3e77d2a --- /dev/null +++ b/abs/core/python_modules/python-pytz/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> +# Maintainer: Jelle van der Waa <jelle@vdwaa.nl> +# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org> +# Contributor: William Rea <sillywilly@gmail.com> + +pkgname=('python2-pytz') +pkgver=2017.2 +pkgrel=1 +arch=('any') +url="http://pypi.python.org/pypi/pytz" +license=("MIT") +makedepends=('python2') +source=(https://pypi.python.org/packages/a4/09/c47e57fc9c7062b4e83b075d418800d322caa87ec0ac21e6308bd3a2d519/pytz-2017.2.zip{,.asc}) +md5sums=('f89bde8a811c8a1a5bac17eaaa94383c' + 'SKIP') +validpgpkeys=('C7ECC365AB6F255E1EB9BA1701FA998FBAC6374A') + +build(){ + cd $srcdir + cp -rf pytz-$pkgver pytz2-$pkgver +} + +check(){ + cd $srcdir/pytz-$pkgver/pytz/tests + +# python3 test_tzinfo.py + + python2 test_tzinfo.py +} + +package_python-pytz(){ + depends=('python') + pkgdesc="Cross platform time zone library for Python" + + cd $srcdir/pytz-$pkgver + + # Fix locale https://github.com/ipython/ipython/issues/2057 + export LC_ALL=en_US.UTF-8 + + python3 setup.py install --root=$pkgdir/ + + install -D LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + + +package_python2-pytz(){ + depends=('python2') + pkgdesc="Cross platform time zone library for Python" + + cd $srcdir/pytz2-$pkgver + + # python 2 fix + sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' pytz/tzfile.py + + python2 setup.py install --root="$pkgdir/" + + install -D LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/abs/core/python_modules/python-pytz/__changelog b/abs/core/python_modules/python-pytz/__changelog new file mode 100644 index 0000000..c6e1e55 --- /dev/null +++ b/abs/core/python_modules/python-pytz/__changelog @@ -0,0 +1 @@ +PKGBUILD: don't build py 3 stuff |