diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-21 21:44:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-21 21:44:48 +0100 |
commit | d51fe7680c5270ddf8d324bbe11caab6d1e27ade (patch) | |
tree | a895b5889d79dbbb9aa52995fcac4816acfa07c1 /dev-python/fritzconnection/fritzconnection-1.13.1.ebuild | |
parent | 7d52991b5dce3a07be15d3cbbf06abb3fc08cb9c (diff) |
gentoo auto-resync : 21:08:2023 - 21:44:47
Diffstat (limited to 'dev-python/fritzconnection/fritzconnection-1.13.1.ebuild')
-rw-r--r-- | dev-python/fritzconnection/fritzconnection-1.13.1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/fritzconnection/fritzconnection-1.13.1.ebuild b/dev-python/fritzconnection/fritzconnection-1.13.1.ebuild new file mode 100644 index 000000000000..b1bee82fa217 --- /dev/null +++ b/dev-python/fritzconnection/fritzconnection-1.13.1.ebuild @@ -0,0 +1,50 @@ +# 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" + +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 ~x86" +fi + +RDEPEND=" + >=dev-python/requests-2.22[${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 + ) + + # "routertest" marks tests against live hardware + epytest -m "not routertest" +} |