diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-10 16:37:59 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-10 16:37:59 +0000 |
commit | a6611f9bc959724ec73dbaa6f1c608698c387a8c (patch) | |
tree | 8ff7cd805082a09f072c81e91670cb075fe81ce3 /dev-python/fritzconnection | |
parent | 1b26473bc67c6bcd775f96cdd7ee9824b97d7ee8 (diff) |
gentoo auto-resync : 10:11:2023 - 16:37:59
Diffstat (limited to 'dev-python/fritzconnection')
-rw-r--r-- | dev-python/fritzconnection/Manifest | 3 | ||||
-rw-r--r-- | dev-python/fritzconnection/fritzconnection-1.13.2-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-python/fritzconnection/metadata.xml | 6 |
3 files changed, 72 insertions, 1 deletions
diff --git a/dev-python/fritzconnection/Manifest b/dev-python/fritzconnection/Manifest index cbb37198db12..d1ab3c0a7101 100644 --- a/dev-python/fritzconnection/Manifest +++ b/dev-python/fritzconnection/Manifest @@ -5,5 +5,6 @@ DIST fritzconnection-1.13.2.gh.tar.gz 161752 BLAKE2B 9cd4af3ebaa3d617560ab833e47 EBUILD fritzconnection-1.12.2.ebuild 987 BLAKE2B d5c072aff514a0289c58409de6d07f463ed45770313a973f8d7bcbf9ed20ede39065014275412d7866b4fb505fa967221a866ebd8116053aea3801c0444fbec7 SHA512 c95c3d57494f42433d8d7ac3da6d7a8f56184161f0ba497857e157fdf15b5fd21793c18ceb4dcb1aed9bbdf0c3a1e53c4f0172eeb7aeecfa5bab09f68216ec9c EBUILD fritzconnection-1.13.0.ebuild 1095 BLAKE2B 07a013c6f0ee8cc0217b8e1431692d3722bd0c9671196a77ca398974f4144105ae4d67cb916fa162be7dcb16ab1484609b9df667c2ec7eee423cee83c3a80115 SHA512 dcadad7241b44b8fb0783676099aae7b5c24413b51fb0a218bbe1dd14be07ad21a70499166d4aaa4ad5834e3262e23e6781fab5cbab56eff27ef66dcb7d73ff8 EBUILD fritzconnection-1.13.1.ebuild 1095 BLAKE2B 07a013c6f0ee8cc0217b8e1431692d3722bd0c9671196a77ca398974f4144105ae4d67cb916fa162be7dcb16ab1484609b9df667c2ec7eee423cee83c3a80115 SHA512 dcadad7241b44b8fb0783676099aae7b5c24413b51fb0a218bbe1dd14be07ad21a70499166d4aaa4ad5834e3262e23e6781fab5cbab56eff27ef66dcb7d73ff8 +EBUILD fritzconnection-1.13.2-r1.ebuild 1531 BLAKE2B 8c16991aa3d89a67d31f065d64f15972279a8a77ba82751c78760260dd01bb9ae146b06dc5189bdcd81a9b9b5df1c946f6697b1ca2416d2aae94459bb305f850 SHA512 7113df84f7a03d75047a91948df03b494ef19ebb2c0dbbb0420ec6d564e733ae9d1b221abdd97b3310a039475492bec9dec4c11e047ef243804a02f8c0f752f2 EBUILD fritzconnection-1.13.2.ebuild 1095 BLAKE2B 07a013c6f0ee8cc0217b8e1431692d3722bd0c9671196a77ca398974f4144105ae4d67cb916fa162be7dcb16ab1484609b9df667c2ec7eee423cee83c3a80115 SHA512 dcadad7241b44b8fb0783676099aae7b5c24413b51fb0a218bbe1dd14be07ad21a70499166d4aaa4ad5834e3262e23e6781fab5cbab56eff27ef66dcb7d73ff8 -MISC metadata.xml 469 BLAKE2B f180fca33d0ab2fc81dc87fd39db87cf8c8ff51777062968a3ace592c9ac63af311273fda2db88c6772204ae24c21b4f195d1b7bacbb3c23f677dc7e8e309f1d SHA512 9ab24725dc0bb5b0e40ce79520d19c0348b08c7d779b53064111aa53fefefadc164b6140310df0a367d460d2fbb46345bdb2b7b6a9cf1beba3bbab1f7d7e2697 +MISC metadata.xml 588 BLAKE2B 775577c995b833db6ed7e09a04f46496a6881043c63d72135f958ebc7e5387db93bc56f8ac3d0b99c1182eb03f21101e160c6df34798a7aa87aa5802d4459779 SHA512 5372a1a81cd10e31b1d32a53974fb7808773d6b6156411065d230890d2cfebc723e211f0a778cb5ccb8fd8957f3f99665f6f6093326cbda1c5f3245d3fe2bfdd diff --git a/dev-python/fritzconnection/fritzconnection-1.13.2-r1.ebuild b/dev-python/fritzconnection/fritzconnection-1.13.2-r1.ebuild new file mode 100644 index 000000000000..73e3ff50eb6b --- /dev/null +++ b/dev-python/fritzconnection/fritzconnection-1.13.2-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Lib/tool to communicate with AVM FRITZ! devices using TR-064 protocol over UPnP" +HOMEPAGE=" + https://github.com/kbr/fritzconnection/ + https://pypi.org/project/fritzconnection/ +" + +LICENSE="MIT" +SLOT="0" +IUSE="qrcode" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/kbr/fritzconnection" + inherit git-r3 +else + SRC_URI=" + https://github.com/kbr/fritzconnection/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64" +fi + +RDEPEND=" + >=dev-python/requests-2.22[${PYTHON_USEDEP}] + qrcode? ( + dev-python/segno[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # flaky (relies on time.sleep(0.01) magically being sufficient) + fritzconnection/tests/test_fritzmonitor.py::test_terminate_thread_on_failed_reconnection + ) + + if has_version "dev-python/segno[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + # requires "QR Code detection" support in media-libs/opencv + # https://bugs.gentoo.org/917121 + fritzconnection/tests/test_fritzwlan.py::test_get_wifi_qr_code + fritzconnection/tests/test_fritzwlan.py::test_helper_functions + fritzconnection/tests/test_fritzwlan.py::test_tools + ) + fi + + # "routertest" marks tests against live hardware + epytest -m "not routertest" +} diff --git a/dev-python/fritzconnection/metadata.xml b/dev-python/fritzconnection/metadata.xml index 80aadfcb4881..32eb24693df4 100644 --- a/dev-python/fritzconnection/metadata.xml +++ b/dev-python/fritzconnection/metadata.xml @@ -11,4 +11,10 @@ <remote-id type="github">kbr/fritzconnection</remote-id> <remote-id type="pypi">fritzconnection</remote-id> </upstream> + <use> + <flag name="qrcode"> + Install dependencies needed to generate QR Codes for WiFi + login. + </flag> + </use> </pkgmetadata> |