void-packages/srcpkgs/python-namedlist/template
Alessio Sergi 9e48f768e6 python-namedlist: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 15:42:21 +02:00

33 lines
1,000 B
Bash

# Template file for 'python-namedlist'
pkgname=python-namedlist
version=1.7
revision=2
noarch=yes
wrksrc="namedlist-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="namedlist"
short_desc="Similar to namedtuple, but instances are mutable"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
homepage="https://bitbucket.org/ericvsmith/namedlist"
license="Apache-2.0"
distfiles="${PYPI_SITE}/n/namedlist/namedlist-${version}.tar.gz"
checksum=190b39ceaf1d6b59999811259e61beb1b26aaa482fb8c95538294d551461c986
python3-namedlist_package() {
noarch=yes
depends="python3"
pycompile_module="namedlist"
replaces="python3.4-namedlist>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-namedlist_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-namedlist>=${version}_${revision}"
}