blob: c3642585d01813cdea87ce94cac1a572b62e8528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
_pypiname=poster
pkgname=python-poster
pkgver=0.8.1
pkgrel=1
pkgdesc="Streaming HTTP uploads and multipart/form-data encoding"
arch=(any)
source=("https://pypi.python.org/packages/source/p/poster/${_pypiname}-${pkgver}.tar.gz")
license=("MIT")
makedepends=("python" "python-setuptools")
md5sums=('2db12704538781fbaa7e63f1505d6fc8')
prepare() {
cd "$_pypiname-${pkgver}"
2to3 -w .
grep -rl 'httplib' . | xargs sed -i "s%httplib%http.client%g"
}
package() {
cd "$_pypiname-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
}
|