From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 11E07158094 for ; Tue, 9 Aug 2022 17:58:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 764D0E0C68; Tue, 9 Aug 2022 17:58:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51C8CE0C64 for ; Tue, 9 Aug 2022 17:58:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 04F7D341019 for ; Tue, 9 Aug 2022 17:58:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A4B4A57A for ; Tue, 9 Aug 2022 17:58:48 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1660067906.5b4e02f4766ef9073dc980b4bcec0ddd742a70a9.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycares/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pycares/Manifest dev-python/pycares/pycares-4.2.2.ebuild X-VCS-Directories: dev-python/pycares/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 5b4e02f4766ef9073dc980b4bcec0ddd742a70a9 X-VCS-Branch: master Date: Tue, 9 Aug 2022 17:58:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 290fa5ea-9ef2-44ca-8308-8bca2ad19689 X-Archives-Hash: 2dd950ab52fc3c84e9554709c5cbf8ec commit: 5b4e02f4766ef9073dc980b4bcec0ddd742a70a9 Author: Arthur Zamarin gentoo org> AuthorDate: Tue Aug 9 17:58:03 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Tue Aug 9 17:58:26 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b4e02f4 dev-python/pycares: add 4.2.2 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/pycares/Manifest | 1 + dev-python/pycares/pycares-4.2.2.ebuild | 51 +++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/dev-python/pycares/Manifest b/dev-python/pycares/Manifest index 1d5ead82fc9b..1b0cb3519b51 100644 --- a/dev-python/pycares/Manifest +++ b/dev-python/pycares/Manifest @@ -1 +1,2 @@ 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 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}" +}