2016-10-07 11:45:01 +02:00
|
|
|
# Template file for 'python-netaddr'
|
|
|
|
pkgname=python-netaddr
|
2017-01-16 18:23:51 +01:00
|
|
|
version=0.7.19
|
|
|
|
revision=1
|
2016-10-07 11:45:01 +02:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="netaddr-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="netaddr"
|
2016-10-17 12:10:21 +02:00
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
2016-10-07 11:45:01 +02:00
|
|
|
depends="python"
|
2017-01-16 18:23:51 +01:00
|
|
|
short_desc="Python2 network address manipulation library"
|
2016-10-07 11:45:01 +02:00
|
|
|
maintainer="Felix Hanley <felix@userspace.com.au>"
|
|
|
|
homepage="https://github.com/drkjam/netaddr/"
|
|
|
|
license="3-clause-BSD"
|
|
|
|
distfiles="${PYPI_SITE}/n/netaddr/netaddr-${version}.tar.gz"
|
2017-01-16 18:23:51 +01:00
|
|
|
checksum=38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd
|
2016-10-17 12:10:21 +02:00
|
|
|
alternatives="netaddr:netaddr:/usr/bin/netaddr2"
|
2016-10-07 11:45:01 +02:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
2016-10-17 12:10:21 +02:00
|
|
|
python3-netaddr_package() {
|
2016-10-14 10:59:09 +02:00
|
|
|
noarch=yes
|
2016-10-17 12:10:21 +02:00
|
|
|
depends="python3"
|
2016-10-14 10:59:09 +02:00
|
|
|
pycompile_module="netaddr"
|
2016-10-17 12:10:21 +02:00
|
|
|
replaces="python3.4-netaddr>=0"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
alternatives="netaddr:netaddr:/usr/bin/netaddr3"
|
2016-10-07 11:45:01 +02:00
|
|
|
pkg_install() {
|
2016-10-17 12:10:21 +02:00
|
|
|
vmove usr/bin/netaddr3
|
|
|
|
vmove usr/lib/python3*
|
2016-10-07 11:45:01 +02:00
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
}
|
2016-10-17 12:10:21 +02:00
|
|
|
python3.4-netaddr_package() {
|
|
|
|
noarch=yes
|
|
|
|
build_style=meta
|
|
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
|
|
depends="python3-netaddr>=${version}_${revision}"
|
|
|
|
}
|