34 lines
965 B
Bash
34 lines
965 B
Bash
# Template file for 'python-traitlets'
|
|
pkgname=python-traitlets
|
|
version=4.2.2
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="traitlets-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-decorator python-ipython_genutils"
|
|
pycompile_module="traitlets"
|
|
short_desc="Configuration system for Python2 applications"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/ipython/traitlets"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/t/traitlets/traitlets-${version}.tar.gz"
|
|
checksum=7d7e3070484b2fe490fa55e0acf7023afc5ed9ddabec57405f25c355158e152a
|
|
|
|
post_install() {
|
|
vlicense COPYING.md LICENSE
|
|
}
|
|
|
|
python3.4-traitlets_package() {
|
|
noarch=yes
|
|
depends="python3.4-decorator python3.4-ipython_genutils"
|
|
pycompile_version="3.4"
|
|
pycompile_module="traitlets"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
vlicense COPYING.md LICENSE
|
|
}
|
|
}
|