diff --git a/srcpkgs/python3-ifaddr/template b/srcpkgs/python3-ifaddr/template new file mode 100644 index 00000000000..0e4c6a866ba --- /dev/null +++ b/srcpkgs/python3-ifaddr/template @@ -0,0 +1,21 @@ +# Template file for 'python3-ifaddr' +pkgname=python3-ifaddr +version=0.1.4 +revision=1 +noarch=yes +wrksrc="ifaddr-${version}" +build_style=python3-module +pycompile_module="ifaddr" +hostmakedepends="unzip python3-setuptools" +depends="python3" +short_desc="Enumerates all IP addresses on all network adapters of the system" +maintainer="Alessio Sergi " +license="MIT" +homepage="https://github.com/pydron/ifaddr" +distfiles="${PYPI_SITE}/i/ifaddr/ifaddr-${version}.zip" +checksum=cf2a8fbb578da2844d999a0a453825f660ed2d3fc47dcffc5f673dd8de4f0f8b + +pre_build() { + # ipaddress is part of Python 3 stdlib since 3.3 + sed -i '/install_requires/d' setup.py +}