Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycares/
Date: Tue, 28 Jun 2022 18:49:48
Message-Id: 1656442176.6e1d935057532cd38822b2c4b61dace500256bb7.arthurzam@gentoo
1 commit: 6e1d935057532cd38822b2c4b61dace500256bb7
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 28 18:49:24 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 18:49:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e1d9350
7
8 dev-python/pycares: add 4.2.1
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pycares/Manifest | 1 +
13 dev-python/pycares/pycares-4.2.1.ebuild | 51 +++++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-python/pycares/Manifest b/dev-python/pycares/Manifest
17 index 0f234db35a7c..50e8ddd570ee 100644
18 --- a/dev-python/pycares/Manifest
19 +++ b/dev-python/pycares/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pycares-4.1.2.tar.gz 43668 BLAKE2B 4b26f8643ff5ce297981b0b60b3afb34b249138e8f702dd4aa0a38935e9e5338d048f3be1b4fb64d6d8b2259a279a8881dbd44b412c10427dbd7eee664e70495 SHA512 6fb2d24fb5f2638c55424608b02ebe9f630866d644decfb663ab9d8e2bb7a42629748fa220054747f9c36ce3dcb42f3b8e457c5c39009f94b564ff07efde0c84
22 DIST pycares-4.2.0.gh.tar.gz 43939 BLAKE2B 6cac12ff2b3c44cf7d04b4ce3067d5435d416788e89251d87825e5ea265ecb178948e0187c47e8dfe40ec0480a66b8b2f6cc2c45e74473e9d66f5cc74269f50f SHA512 14c813242ff6cdc5249ae52c2b9ff1870d7b74c7c6083868b2b4bbe0ce2af3f15e9b2775f67940ffbfc4ce84a6a9232ba4fab5a17ef389f7a197a15318280e43
23 +DIST pycares-4.2.1.gh.tar.gz 43939 BLAKE2B 40f147189d5daf841a8165da86d881f1822763fbd050b040f11bd1f63a768dfbc71c78230d41331486cbc2354175b528f298dbb167ef7801e57b05b4a13c820d SHA512 b5462b58bf75a9ee39496209c8270bc9c07070d34d9c2f2a2eed4752ebf83392e256248dda06ec5934c235cb37636e55a21cff4181b0a03c3eff24fbf9297eb4
24
25 diff --git a/dev-python/pycares/pycares-4.2.1.ebuild b/dev-python/pycares/pycares-4.2.1.ebuild
26 new file mode 100644
27 index 000000000000..aa636a8ce629
28 --- /dev/null
29 +++ b/dev-python/pycares/pycares-4.2.1.ebuild
30 @@ -0,0 +1,51 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Python interface for c-ares"
42 +HOMEPAGE="
43 + https://github.com/saghul/pycares/
44 + https://pypi.org/project/pycares/
45 +"
46 +SRC_URI="
47 + https://github.com/saghul/pycares/archive/${P}.tar.gz
48 + -> ${P}.gh.tar.gz
49 +"
50 +S=${WORKDIR}/pycares-${P}
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
55 +IUSE="test"
56 +# Tests fail with network-sandbox, since they try to resolve google.com
57 +PROPERTIES="test_network"
58 +RESTRICT="test"
59 +
60 +DEPEND="
61 + net-dns/c-ares:=
62 +"
63 +BDEPEND="
64 + virtual/python-cffi[${PYTHON_USEDEP}]
65 +"
66 +RDEPEND="
67 + dev-python/idna[${PYTHON_USEDEP}]
68 + ${DEPEND}
69 + ${BDEPEND}
70 +"
71 +BDEPEND+="
72 + test? (
73 + dev-python/idna[${PYTHON_USEDEP}]
74 + )
75 +"
76 +
77 +export PYCARES_USE_SYSTEM_LIB=1
78 +
79 +python_test() {
80 + "${EPYTHON}" tests/tests.py -v || die "Tests failed with ${EPYTHON}"
81 +}