void-packages/srcpkgs/python-traitlets/template
Alessio Sergi 769b2355f7 python-traitlets: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 00:00:56 +02:00

38 lines
1.1 KiB
Bash

# Template file for 'python-traitlets'
pkgname=python-traitlets
version=4.3.1
revision=3
noarch=yes
wrksrc="traitlets-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-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=ba8c94323ccbe8fd792e45d8efe8c95d3e0744cc8c085295b607552ab573724c
post_install() {
vlicense COPYING.md LICENSE
}
python3-traitlets_package() {
noarch=yes
depends="python3-decorator python3-ipython_genutils"
replaces="python3.4-traitlets>=0"
pycompile_module="traitlets"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING.md LICENSE
}
}
python3.4-traitlets_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-traitlets>=${version}_${revision}"
}