Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fritzconnection/
Date: Sat, 28 Jan 2023 16:19:01
Message-Id: 1674922732.300543846777ee6fb8ebbd324f06c102df3eb181.mgorny@gentoo
1 commit: 300543846777ee6fb8ebbd324f06c102df3eb181
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 28 16:08:45 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 28 16:18:52 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30054384
7
8 dev-python/fritzconnection: Bump to 1.11.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/fritzconnection/Manifest | 1 +
13 .../fritzconnection/fritzconnection-1.11.0.ebuild | 51 ++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-python/fritzconnection/Manifest b/dev-python/fritzconnection/Manifest
17 index 6ebc98291b36..87e076bd8211 100644
18 --- a/dev-python/fritzconnection/Manifest
19 +++ b/dev-python/fritzconnection/Manifest
20 @@ -1 +1,2 @@
21 DIST fritzconnection-1.10.3.gh.tar.gz 146450 BLAKE2B 77c64d2963ed0bc1c1bf1d31fc42093d959588df5ea55956c2deb35c1569f76f1b89bb2f1273ad691285d21f168f5acdbb1326bcad4ed2e575d57b9a6187e839 SHA512 e54cf5ec4392c8bc0b6cbc19111819bd72125bf1eb341380686c0ac513c646dec16f8a243fdfbe22199c954cbf26c80ab30dbe93b5e02288bc25fcae28595305
22 +DIST fritzconnection-1.11.0.gh.tar.gz 147539 BLAKE2B def880bcf80bb99864bca942b86c86adcda878fb62b7c0e35db4a746310e5ec8ad00bc25f43acac23c0d5410dc8790875b8b0822aa6d944a0e1197379e015e22 SHA512 bb517a63616a961f9c2c701d44093024f0763c093f89b99d205fb1fd1492342b568b871ebaf699a69a9d56e724735b975c48e4abd1780726d10c13e075cf08f2
23
24 diff --git a/dev-python/fritzconnection/fritzconnection-1.11.0.ebuild b/dev-python/fritzconnection/fritzconnection-1.11.0.ebuild
25 new file mode 100644
26 index 000000000000..c82f65f2406f
27 --- /dev/null
28 +++ b/dev-python/fritzconnection/fritzconnection-1.11.0.ebuild
29 @@ -0,0 +1,51 @@
30 +# Copyright 2022-2023 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{9..11} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Lib/tool to communicate with AVM FRITZ! devices using TR-064 protocol over UPnP"
41 +HOMEPAGE="
42 + https://github.com/kbr/fritzconnection/
43 + https://pypi.org/project/fritzconnection/
44 +"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +
49 +if [[ "${PV}" == "9999" ]]; then
50 + EGIT_REPO_URI="https://github.com/kbr/fritzconnection"
51 + inherit git-r3
52 +else
53 + SRC_URI="
54 + https://github.com/kbr/fritzconnection/archive/${PV}.tar.gz
55 + -> ${P}.gh.tar.gz
56 + "
57 + KEYWORDS="~amd64 ~x86"
58 +fi
59 +
60 +RDEPEND="
61 + >=dev-python/requests-2.22[${PYTHON_USEDEP}]
62 +"
63 +BDEPEND="
64 + test? (
65 + dev-python/pytest-mock[${PYTHON_USEDEP}]
66 + )
67 +"
68 +
69 +distutils_enable_tests pytest
70 +
71 +EPYTEST_DESELECT=(
72 + # flaky (relies on time.sleep(0.01) magically being sufficient)
73 + fritzconnection/tests/test_fritzmonitor.py::test_terminate_thread_on_failed_reconnection
74 +)
75 +
76 +src_prepare() {
77 + # upstream is pinning for py3.6 compat x_x
78 + sed -i -e 's:,<[0-9.]*::' setup.py || die
79 + distutils-r1_src_prepare
80 +}