void-packages/srcpkgs/python-traitlets/template

32 lines
940 B
Bash

# Template file for 'python-traitlets'
pkgname=python-traitlets
version=4.3.2
revision=2
noarch=yes
wrksrc="traitlets-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-decorator python-ipython_genutils python-six python-enum34"
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=9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835
post_install() {
vlicense COPYING.md LICENSE
}
python3-traitlets_package() {
noarch=yes
depends="python3-decorator python3-ipython_genutils python3-six"
pycompile_module="traitlets"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING.md LICENSE
}
}