blob: 3fa38ef911d03d33a6a1a3236756fc9c8132d009 (
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
|
# Contributor: Jean-Louis Fuchs <ganwell@fangorn.ch>
# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch>
pkgname=py-attrs
pkgver=18.1.0
pkgrel=0
pkgdesc="Python classes without boilerplate"
url="http://www.attrs.org"
arch="noarch"
license="MIT"
makedepends="python3-dev python2-dev py2-setuptools"
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="py-attrs-$pkgver.tar.gz::https://github.com/python-attrs/attrs/archive/$pkgver.tar.gz"
builddir="$srcdir/attrs-$pkgver"
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
check() {
PYTHONPATH="$builddir/src" python2 check.py
PYTHONPATH="$builddir/src" python3 check.py
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"
}
_py() {
local python="$1"
pkgdesc="$pkgdesc ($python)"
depends="$depends $python"
provides="$pkgname-tools"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
replaces="$pkgname"
_py python2
}
_py3() {
_py python3
}
sha512sums="89fb46c03459457f0d25616b10f9d2f28670d676b54484090c5d974a7c801f3a14a65922f2fbc85dc0d54e222a8da7dc08ab1266f234cb20146bb4ad10d55f4a py-attrs-18.1.0.tar.gz"
|