From 69202c9dc2e21292adc03d8e2083e15f1814f321 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 9 Aug 2022 20:16:39 +0100 Subject: gentoo auto-resync : 09:08:2022 - 20:16:39 --- dev-python/pycares/Manifest | 2 ++ dev-python/pycares/pycares-4.2.2.ebuild | 51 +++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 dev-python/pycares/pycares-4.2.2.ebuild (limited to 'dev-python/pycares') diff --git a/dev-python/pycares/Manifest b/dev-python/pycares/Manifest index 02f9df7a0412..bc776a745ec0 100644 --- a/dev-python/pycares/Manifest +++ b/dev-python/pycares/Manifest @@ -1,3 +1,5 @@ DIST pycares-4.2.1.gh.tar.gz 43939 BLAKE2B 40f147189d5daf841a8165da86d881f1822763fbd050b040f11bd1f63a768dfbc71c78230d41331486cbc2354175b528f298dbb167ef7801e57b05b4a13c820d SHA512 b5462b58bf75a9ee39496209c8270bc9c07070d34d9c2f2a2eed4752ebf83392e256248dda06ec5934c235cb37636e55a21cff4181b0a03c3eff24fbf9297eb4 +DIST pycares-4.2.2.gh.tar.gz 44200 BLAKE2B a857f20f0f1cf0243f02d7f8663bfba3d0f97f033afb5eee5ec3ff74b70279cb3535c04953c3131771a1a6447032e309dbed064a4e85b30980361f5db3d674f1 SHA512 1a6b30e8f55d37ca0af9dfd70fd3a0630b691f5f76b4f650e9c98c585b26bd1ff9c237fc1705ce5dc257857db0dce2f020f12099f0c211f5ad0f12196f39433b EBUILD pycares-4.2.1.ebuild 961 BLAKE2B 1246662ba0435ccf1a57f858fa6137fd5859348a0b6cfbe683d3df87107f950f7150b300d51ab417ea5625727d43860b90ba3b16d96eee8f67b8371dd84a6c9a SHA512 a136fa243a5cbab24c501d7032b855a83cd77483e5723df6af14180501f003a15238daefbea831e258f3409490fe2a8110cba06eb5be716c65f62d66cf77c9aa +EBUILD pycares-4.2.2.ebuild 962 BLAKE2B ae6fd34d7202f21aefc7bb5d5a6bad660e154c3f1de6f54e11498a1755ee4a916ca9693bdb95377825ea505fd2dfd606d30f08bb221473b11bc38ca0ee73b51e SHA512 85d716de5bfe4e44b06404fd8bfbaab6290b550a896fb3e7fe77dd660f7eaacdd0c38f483fb6f3edda65fcb831f71dc5057f1747a13f9a0da7c1711c8772ab44 MISC metadata.xml 444 BLAKE2B a68f545c6f704176b98ebb3665e2f56e4879016ea4ffa4f342954d568d6fe76ad67bcf9d521f694b8fc0f199bff50969eb646554fff4a78f8644ac44edda0cdf SHA512 fe893795f2031639d9fa27efcb8afbb5a3e0ac2eb2a05f0465391813d60fba07372633e40136ce38eb429bae95d1ae5dccecd0aba228537553524343133dd202 diff --git a/dev-python/pycares/pycares-4.2.2.ebuild b/dev-python/pycares/pycares-4.2.2.ebuild new file mode 100644 index 000000000000..aa636a8ce629 --- /dev/null +++ b/dev-python/pycares/pycares-4.2.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="Python interface for c-ares" +HOMEPAGE=" + https://github.com/saghul/pycares/ + https://pypi.org/project/pycares/ +" +SRC_URI=" + https://github.com/saghul/pycares/archive/${P}.tar.gz + -> ${P}.gh.tar.gz +" +S=${WORKDIR}/pycares-${P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +IUSE="test" +# Tests fail with network-sandbox, since they try to resolve google.com +PROPERTIES="test_network" +RESTRICT="test" + +DEPEND=" + net-dns/c-ares:= +" +BDEPEND=" + virtual/python-cffi[${PYTHON_USEDEP}] +" +RDEPEND=" + dev-python/idna[${PYTHON_USEDEP}] + ${DEPEND} + ${BDEPEND} +" +BDEPEND+=" + test? ( + dev-python/idna[${PYTHON_USEDEP}] + ) +" + +export PYCARES_USE_SYSTEM_LIB=1 + +python_test() { + "${EPYTHON}" tests/tests.py -v || die "Tests failed with ${EPYTHON}" +} -- cgit v1.2.3