From 330018295b48edb9eddd47b0f636c2286a41fe57 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 23 Mar 2018 19:05:58 +0000 Subject: python-more-itertools: dep of python-pytest --- .../python_modules/python-more-itertools/PKGBUILD | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 abs/core/python_modules/python-more-itertools/PKGBUILD diff --git a/abs/core/python_modules/python-more-itertools/PKGBUILD b/abs/core/python_modules/python-more-itertools/PKGBUILD new file mode 100644 index 0000000..3a07dda --- /dev/null +++ b/abs/core/python_modules/python-more-itertools/PKGBUILD @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Kyle Keen +# Contributor: Germán Osella Massa + +pkgbase=python-more-itertools +pkgname=('python-more-itertools' 'python2-more-itertools') +pkgver=3.1.0 +pkgrel=1 +pkgdesc='More routines for operating on iterables, beyond itertools' +arch=('any') +url='https://github.com/erikrose/more-itertools' +#url='https://pypi.python.org/pypi/more-itertools' +license=('MIT') +depends=('python') +makedepends=('python-setuptools' 'python2-setuptools' 'python2-six') +source=("https://files.pythonhosted.org/packages/source/m/more-itertools/more-itertools-$pkgver.tar.gz") +md5sums=('e3dad64e30d0220039d0cb036ae7532c') + +prepare() { + cp -R "more-itertools-$pkgver" "py2-more-itertools-$pkgver" +} + +package_python-more-itertools() { + cd "$srcdir/more-itertools-$pkgver" + python3 setup.py install --root="$pkgdir/" --optimize=0 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-more-itertools() { + depends=('python2' 'python2-six') + cd "$srcdir/py2-more-itertools-$pkgver" + python2 setup.py install --root="$pkgdir/" --optimize=0 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: -- cgit v0.12