commit: b70155b50caed13bd233b3d4a70b76bf5a679bab Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Sun Sep 18 22:18:44 2016 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sun Sep 18 22:33:48 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b70155b5
dev-python/pycares: add package (bug 533578) Package-Manager: portage-2.3.0 dev-python/pycares/Manifest | 1 + dev-python/pycares/metadata.xml | 11 +++++++++++ dev-python/pycares/pycares-2.1.0.ebuild | 26 ++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/dev-python/pycares/Manifest b/dev-python/pycares/Manifest new file mode 100644 index 00000000..b52a9b1 --- /dev/null +++ b/dev-python/pycares/Manifest @@ -0,0 +1 @@ +DIST pycares-2.1.0.tar.gz 226838 SHA256 449ad785ecb594ae063c0c86537ef97513385117a2eb172f747ad2a29221e898 SHA512 189851a9488828eb41bd6adbefd14022ae8470bde98c1d1c21d67992acdf721e6a61c3d8d8b4f85fb420e1e0900c54e53893586d6f80cc822371260fc17e55c4 WHIRLPOOL 3c3274e122fcea0edee02e1d1719c5dfbf6d437860d2962da0c18e8e56314df149f5c40e1847f7b9ad58c10a594943419453f594017e8508d7d7acf6197c6d22 diff --git a/dev-python/pycares/metadata.xml b/dev-python/pycares/metadata.xml new file mode 100644 index 00000000..afce755 --- /dev/null +++ b/dev-python/pycares/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="pypi">pycares</remote-id> + <remote-id type="github">saghul/pycares</remote-id> + </upstream> + <maintainer type="person"> + <email>[email protected]</email> + </maintainer> +</pkgmetadata> diff --git a/dev-python/pycares/pycares-2.1.0.ebuild b/dev-python/pycares/pycares-2.1.0.ebuild new file mode 100644 index 00000000..23c4522 --- /dev/null +++ b/dev-python/pycares/pycares-2.1.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit eutils distutils-r1 + +DESCRIPTION="Python interface for c-ares" +HOMEPAGE="https://github.com/saghul/pycares/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +# Tests fail with network-sandbox, since they try to resolve google.com +RESTRICT="test" + +# uses bundled/patched c-ares +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +python_test() { + "${PYTHON:-python}" tests/tests.py || die +}
