From 36ec6ab974a223409eecf4bd144920c16b6b85a1 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 21 Dec 2020 12:52:25 +0000 Subject: Updating liguros repo --- .../backports-zoneinfo-0.2.1-r1.ebuild | 66 ++++++++++++++++++++++ .../backports-zoneinfo-0.2.1.ebuild | 60 -------------------- .../files/backports-zoneinfo-0.2.1-py38.patch | 22 ++++++++ dev-python/denonavr/Manifest | 1 + dev-python/denonavr/denonavr-0.9.9.ebuild | 30 ++++++++++ dev-python/miniupnpc/Manifest | 2 + dev-python/miniupnpc/miniupnpc-2.2.1.ebuild | 34 +++++++++++ 7 files changed, 155 insertions(+), 60 deletions(-) create mode 100644 dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1-r1.ebuild delete mode 100644 dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild create mode 100644 dev-python/backports-zoneinfo/files/backports-zoneinfo-0.2.1-py38.patch create mode 100644 dev-python/denonavr/denonavr-0.9.9.ebuild create mode 100644 dev-python/miniupnpc/miniupnpc-2.2.1.ebuild (limited to 'dev-python') diff --git a/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1-r1.ebuild b/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1-r1.ebuild new file mode 100644 index 000000000000..7cf04f3c7d51 --- /dev/null +++ b/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +inherit distutils-r1 + +MY_P=${P#backports-} +DESCRIPTION="Backport of the standard library zoneinfo module" +HOMEPAGE="https://github.com/pganssle/zoneinfo/" +SRC_URI=" + https://github.com/pganssle/zoneinfo/archive/${PV}.tar.gz + -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/importlib_resources[${PYTHON_USEDEP}] + ' python3_6 pypy3)" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/dataclasses[${PYTHON_USEDEP}] + ' python3_6) + $(python_gen_cond_dep ' + dev-python/importlib_metadata[${PYTHON_USEDEP}] + ' python3_{6,7}) + >=dev-python/hypothesis-5.7.0[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +# pytest is used only for one skip, and requires unpackaged +# pytest-subtests +distutils_enable_tests unittest + +PATCHES=( + # fix segv in py3.8.7rc1+ + # https://github.com/pganssle/zoneinfo/pull/97 + "${FILESDIR}"/${P}-py38.patch +) + +python_test() { + if [[ ${EPYTHON} == pypy3 ]]; then + # pypy3.6 does not support dataclasses, and the backport + # does not work with pypy + local pypy3_version=$(best_version -b 'dev-python/pypy3') + if [[ ${pypy3_version} != *_p37* ]]; then + einfo "Skipping tests on pypy3.6 due to missing deps" + return + fi + fi + + "${EPYTHON}" -m unittest discover -v || + die "Tests failed with ${EPYTHON}" +} + +python_install() { + # avoid file collisions + rm "${BUILD_DIR}"/lib/backports/__init__.py || die + distutils-r1_python_install +} diff --git a/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild b/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild deleted file mode 100644 index 7dbbe6978d53..000000000000 --- a/dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) -inherit distutils-r1 - -MY_P=${P#backports-} -DESCRIPTION="Backport of the standard library zoneinfo module" -HOMEPAGE="https://github.com/pganssle/zoneinfo/" -SRC_URI=" - https://github.com/pganssle/zoneinfo/archive/${PV}.tar.gz - -> ${MY_P}.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" - -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/importlib_resources[${PYTHON_USEDEP}] - ' python3_6 pypy3)" -BDEPEND=" - test? ( - $(python_gen_cond_dep ' - dev-python/dataclasses[${PYTHON_USEDEP}] - ' python3_6) - $(python_gen_cond_dep ' - dev-python/importlib_metadata[${PYTHON_USEDEP}] - ' python3_{6,7}) - >=dev-python/hypothesis-5.7.0[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - )" - -# pytest is used only for one skip, and requires unpackaged -# pytest-subtests -distutils_enable_tests unittest - -python_test() { - if [[ ${EPYTHON} == pypy3 ]]; then - # pypy3.6 does not support dataclasses, and the backport - # does not work with pypy - local pypy3_version=$(best_version -b 'dev-python/pypy3') - if [[ ${pypy3_version} != *_p37* ]]; then - einfo "Skipping tests on pypy3.6 due to missing deps" - return - fi - fi - - "${EPYTHON}" -m unittest discover -v || - die "Tests failed with ${EPYTHON}" -} - -python_install() { - # avoid file collisions - rm "${BUILD_DIR}"/lib/backports/__init__.py || die - distutils-r1_python_install -} diff --git a/dev-python/backports-zoneinfo/files/backports-zoneinfo-0.2.1-py38.patch b/dev-python/backports-zoneinfo/files/backports-zoneinfo-0.2.1-py38.patch new file mode 100644 index 000000000000..dbe9695a9a53 --- /dev/null +++ b/dev-python/backports-zoneinfo/files/backports-zoneinfo-0.2.1-py38.patch @@ -0,0 +1,22 @@ +From 0e42cc3999b4e3833b5f3f41857b8c1e3c9143f3 Mon Sep 17 00:00:00 2001 +From: Pablo Galindo +Date: Mon, 21 Dec 2020 02:02:34 +0000 +Subject: [PATCH] Decrement the refcount of _PyLong_One in the correct branch + +--- + lib/zoneinfo_module.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/zoneinfo_module.c b/lib/zoneinfo_module.c +index e0c72d3..07ef603 100644 +--- a/lib/zoneinfo_module.c ++++ b/lib/zoneinfo_module.c +@@ -616,7 +616,7 @@ zoneinfo_fromutc(PyObject *obj_self, PyObject *dt) + Py_DECREF(args); + Py_DECREF(kwargs); + Py_DECREF(replace); +-#ifndef ATLEAST_37 ++#ifdef ATLEAST_37 + Py_DECREF(one); + #endif + diff --git a/dev-python/denonavr/Manifest b/dev-python/denonavr/Manifest index 9773bdf6d15a..8b1149234ed3 100644 --- a/dev-python/denonavr/Manifest +++ b/dev-python/denonavr/Manifest @@ -1,2 +1,3 @@ DIST denonavr-0.9.7.tar.gz 101839 BLAKE2B d44600e6963c2e17ffc12f203926b522d2bf2d9a853e4f061583158fb087b8fb5dbc43be835aa639ffe11391aa494a8b061b2c177bccfc2568781b304547e311 SHA512 2b8a8224ec46b90d2256d7d516801c6ae18b4434a0ee901b0a9aa80cc0481216fa33566bf33d41928f0112361b165bbe40e5f44b65cd17f09beb7cb3f4d9d803 DIST denonavr-0.9.8.tar.gz 101850 BLAKE2B b02a18d1f61547e7e63fbd51a72de57803ec6e78232be0027fb6b77176fa872227afcb5a414b0cb92ca4373116a5c6ec4975fea73ae272742ec399e4c0e3ad81 SHA512 30ca12ffffcf66b45c17434c96e496fe61af5cd42aa85dcb25502f6a21593ec4d884937d52726a430b405d9807ad024456e48e144a759ea1351fccc906a95af3 +DIST denonavr-0.9.9.tar.gz 101902 BLAKE2B de30ad9520781eaa66a651f8a77ed88c76daa191f0de716f2cc00e21a8c8ae8883c5aa0c32167754062517763f903949626e04342a2342894a632cb9b94d2e20 SHA512 45d3b4fc6f8487caed0911ff7dd90dd28482de688429b8d0fae68db9a5d78959005ab2aab1b34eab34e964f4e82bccb6d57aadea367f81fc4a7927e54d771728 diff --git a/dev-python/denonavr/denonavr-0.9.9.ebuild b/dev-python/denonavr/denonavr-0.9.9.ebuild new file mode 100644 index 000000000000..f7231b3b430b --- /dev/null +++ b/dev-python/denonavr/denonavr-0.9.9.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +DESCRIPTION="Automation Library for Denon AVR receivers" +HOMEPAGE="https://github.com/scarface-4711/denonavr" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/netifaces[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/requests-mock[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/miniupnpc/Manifest b/dev-python/miniupnpc/Manifest index f8092a1cc73e..9b4da1a12a1e 100644 --- a/dev-python/miniupnpc/Manifest +++ b/dev-python/miniupnpc/Manifest @@ -1,2 +1,4 @@ DIST miniupnpc-2.2.0.tar.gz 98348 BLAKE2B 3464dc7f0b5416b558d0dd49121f3b851d9808a516c19d4f99fdb205e20149f27ef495d9f8da09ad3a28656580bfc16d1cf99ef993e41e9600cfe427b4a776d2 SHA512 b5bb674f162cae3d9e0205a9cdf6acc1fb334ab8ac5330be924411a8fd46833fb916d09f947d1e40d05224df7df1ecf6d812037185690e5022287c2024eb183f DIST miniupnpc-2.2.0.tar.gz.sig 543 BLAKE2B c75dbc54debc77e63ea3534f8f424a3904131893fc31d6485163ee6ecdafdab02fc0db8e290d28c834ac0efc5a37c34cbca7f14e1c78f859d22abc4e0b2ae48f SHA512 54f8cccea5886e06fbdaa04d270c12bd95d219be0b275491d9168f1089b1efe96e8a6f30ebf428091a3bae4bc349c0b8c94a22e94d56845a0a8b9724b1f9f74d +DIST miniupnpc-2.2.1.tar.gz 99595 BLAKE2B 07736eb15a985096178273c4578bb3f0cbf32a04632196e9c216d10751a6a5b1269af5fe2cbd447d85145746a7a8ce750ce13f674f5d8f9e4f6921b9d58204bf SHA512 62fc0098890980028199dd16e87b13ce23e78b2cc996433799792dc2a4fa9b5e230139593bde5c721f649c14fcee2e4d8a0558976c5506c21ff26deff6c7c907 +DIST miniupnpc-2.2.1.tar.gz.sig 543 BLAKE2B 19da35662cf75d47de9cd16d3d8f767119e3dc04370801bf8893a17cd0af47072456b75bc3415b587371972a7c5c36623665391bbf4b9c655d1da3c0e5b8beb7 SHA512 8b5d41556c66e6330673a63eb3be2397cb057c37f648d950e8dfa0bb00e646f343cfbcbd11a6547198d4fa6b1ca2a82b46724e284ce76e96d96ad6b3b5b41c3f diff --git a/dev-python/miniupnpc/miniupnpc-2.2.1.ebuild b/dev-python/miniupnpc/miniupnpc-2.2.1.ebuild new file mode 100644 index 000000000000..b047b3596379 --- /dev/null +++ b/dev-python/miniupnpc/miniupnpc-2.2.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 verify-sig + +DESCRIPTION="Python bindings for UPnP client library" +HOMEPAGE="https://miniupnp.free.fr/" +SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz + verify-sig? ( http://miniupnp.free.fr/files/${P}.tar.gz.sig )" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +RDEPEND=">=net-libs/miniupnpc-${PV}:0=" +DEPEND="${RDEPEND}" +BDEPEND="verify-sig? ( app-crypt/openpgp-keys-miniupnp )" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/miniupnp.asc + +PATCHES=( + "${FILESDIR}"/miniupnpc-2.0.20171102-shared-lib.patch +) + +# DOCS are installed by net-libs/miniupnpc. +DOCS=() + +# Example test command: +# python -c 'import miniupnpc; u = miniupnpc.UPnP(); u.discover(); u.selectigd(); print(u.externalipaddress())' -- cgit v1.3