# Template file for 'python3-netaddr'
pkgname=python3-netaddr
version=1.2.1
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
depends="python3"
checkdepends="python3-pytest python3-cryptography python3-dateutil
 python3-defusedxml python3-idna python3-openssl python3-pytz python3-requests
 python3-six python3-urllib3"
short_desc="Python3 network address manipulation library"
maintainer="Felix Hanley <felix@userspace.com.au>"
license="BSD-3-Clause"
homepage="https://github.com/netaddr/netaddr"
distfiles="${PYPI_SITE}/n/netaddr/netaddr-${version}.tar.gz"
checksum=6eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987
conflicts="python-netaddr>=0"

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	make_check_args+=" --deselect=docs/source/tutorial_01.rst::tutorial_01.rst
	 --deselect=docs/source/tutorial_03.rst::tutorial_03.rst
	 --deselect=netaddr/tests/strategy/test_ipv6_strategy.py::test_strategy_ipv6
	 --deselect=netaddr/tests/strategy/test_ipv6_strategy.py::test_strategy_ipv6_mapped_and_compatible_ipv4_string_formatting"
fi

post_install() {
	vlicense LICENSE.rst
}
