blob: e48da2fcd3c01e85f6bf5882628aa6b02cbc92e3 (
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: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py-traitlets
pkgver=4.3.2
pkgrel=1
pkgdesc="A lightweight Traits like module"
url="https://traitlets.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="py-six py-ipython_genutils"
makedepends="python2-dev python3-dev"
options="!check" # No test suite present
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="traitlets-$pkgver.tar.gz::https://github.com/ipython/traitlets/archive/$pkgver.tar.gz"
builddir="$srcdir/${pkgname#py-}-${pkgver}"
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"
}
_py2() {
depends="${depends//py-/py2-} py-enum34"
_py python2
}
_py3() {
depends="${depends//py-/py3-}"
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
sha512sums="74963f3f0c25dce9c734585b09416bf58350e51714497b024f7e261da9cfd82a7517d42b09920c014d367494e656a4ed76790c711a384d85bfde2ae6fffeaa34 traitlets-4.3.2.tar.gz"
|