diff options
author | Kevin Daudt <ops@ikke.info> | 2018-09-15 14:23:15 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-09-17 06:36:13 +0000 |
commit | ac0b1448c65e97f106708644b9a1b1b624518783 (patch) | |
tree | 748c9cbb9b8548f9070b37dcfa51c4ff2e83e4a4 /testing/py-traitlets | |
parent | f0504ef8de5a2a6faacdbc078987e440f043a7c8 (diff) | |
download | aports-ac0b1448c65e97f106708644b9a1b1b624518783.tar.bz2 aports-ac0b1448c65e97f106708644b9a1b1b624518783.tar.xz |
testing/py-traitlets: new aport
dependency for ipython
Diffstat (limited to 'testing/py-traitlets')
-rw-r--r-- | testing/py-traitlets/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/py-traitlets/APKBUILD b/testing/py-traitlets/APKBUILD new file mode 100644 index 0000000000..9a7a33d5ce --- /dev/null +++ b/testing/py-traitlets/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Kevin Daudt <kdaudt@alpinelinux.org> +# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> +pkgname=py-traitlets +pkgver=4.3.2 +pkgrel=0 +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-} py2-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" |