# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py2-functools32 _pkgname=functools32 pkgver=3.2.3.2 _pkgver=${pkgver%.*}-2 pkgrel=0 pkgdesc="Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy." url="https://pypi.python.org/pypi/functools32" arch="noarch" license="PSF" depends="python2" makedepends="python2-dev py2-setuptools" source="https://files.pythonhosted.org/packages/source/f/$_pkgname/$_pkgname-$_pkgver.tar.gz" builddir="$srcdir/$_pkgname-$_pkgver" build() { cd "$builddir" python2 setup.py build } check() { cd "$builddir" python2 test_functools32.py } package() { cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="ad944019f4aefde292b6872bfe06862d01920a2f44adf8740c36ed51d16d879be7638591aaddf9dac4ec83b6f05bbf81972d5f32854abedcce3dde080459f7f7 functools32-3.2.3-2.tar.gz"