blob: 8ac6a13ef205ddcbcdd343ad11894e47ac381457 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=py-more-itertools
_pkgname=more-itertools
pkgver=5.0.0
pkgrel=0
pkgdesc="More routines for operating on iterables, beyond itertools."
url="https://pypi.python.org/pypi/more-itertools"
arch="noarch"
license="MIT"
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/erikrose/more-itertools/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
check() {
cd "$builddir"
python2 setup.py test
python3 setup.py test
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python="$1"
pkgdesc="$pkgdesc ${python#python}"
depends="$python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
replaces="$pkgname"
depends="py2-six"
_py python2
}
_py3() {
depends="py3-six"
_py python3
}
sha512sums="4d403d5f26d9ef39f84070b3237c4c4f0b55d55999ba3fadf3f60b1d8990c7fa9e5cac4dbdeb199238dc9eba88cc5bf97ec0b0144fbe2b0febd3be474854ea1b more-itertools-5.0.0.tar.gz"
|