blob: b6799787369e4d91eff39b8c1883ba1441f017de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
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"
|