diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-08-08 20:11:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-08-08 20:11:47 +0100 |
commit | f625b9919a60a30f1bd860f7d1b2eac183ced593 (patch) | |
tree | 7543f00925ff7277e31881de0a87801681f6f92f /dev-python/ipaddr/ipaddr-2.2.0.ebuild | |
parent | e3872864be25f7421015bef2732fa57c0c9fb726 (diff) |
gentoo resync : 08.08.2018
Diffstat (limited to 'dev-python/ipaddr/ipaddr-2.2.0.ebuild')
-rw-r--r-- | dev-python/ipaddr/ipaddr-2.2.0.ebuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-python/ipaddr/ipaddr-2.2.0.ebuild b/dev-python/ipaddr/ipaddr-2.2.0.ebuild new file mode 100644 index 000000000000..ed6a948969e8 --- /dev/null +++ b/dev-python/ipaddr/ipaddr-2.2.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Python IP address manipulation library" +HOMEPAGE="https://github.com/google/ipaddr-py https://pypi.org/project/ipaddr/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +python_prepare() { + if python_is_python3; then + 2to3 -n -w --no-diffs *.py || die + fi +} + +python_test() { + distutils_install_for_testing + "${EPYTHON}" ipaddr_test.py || die "Tests fail with ${EPYTHON}" +} |