Install this version:
emerge -a =dev-python/python-kasa-0.11.0.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/python-kasa-0.11.0.1
Or alternatively:
emerge --autounmask-write -a =dev-python/python-kasa-0.11.0.1
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 pypi
DESCRIPTION="Python API for TP-Link Kasa and Tapo devices"
HOMEPAGE="https://github.com/python-kasa/python-kasa https://pypi.org/project/python-kasa/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="docs shell +speedups test"
RESTRICT="!test? ( test )"
DOCS="README.md"
RDEPEND=">=dev-python/asyncclick-8.1.7[${PYTHON_USEDEP}]
>=dev-python/cryptography-1.9.0[${PYTHON_USEDEP}]
>=dev-python/aiohttp-3[${PYTHON_USEDEP}]
>=dev-python/tzdata-2024.2[${PYTHON_USEDEP}]
>=dev-python/mashumaro-3.20[${PYTHON_USEDEP}]
docs? ( dev-python/sphinx[${PYTHON_USEDEP}] dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] dev-python/sphinxcontrib-programoutput[${PYTHON_USEDEP}] dev-python/myst-parser[${PYTHON_USEDEP}] >=dev-python/docutils-0.17.0[${PYTHON_USEDEP}] )
shell? ( dev-python/ptpython[${PYTHON_USEDEP}] dev-python/rich[${PYTHON_USEDEP}] )
speedups? ( >=dev-python/orjson-3.11.1[${PYTHON_USEDEP}] >=dev-python/kasa-crypt-0.2.0[${PYTHON_USEDEP}] )
"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-sugar[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
Manage flags for this package:
euse -i <flag> -p dev-python/python-kasa |
euse -E <flag> -p dev-python/python-kasa |
euse -D <flag> -p dev-python/python-kasa
>=dev-python/asyncclick-8.1.7[] >=dev-python/cryptography-1.9.0[] >=dev-python/aiohttp-3[] >=dev-python/tzdata-2024.2[] >=dev-python/mashumaro-3.20[] docs? ( dev-python/sphinx[] dev-python/sphinx-rtd-theme[] dev-python/sphinxcontrib-programoutput[] dev-python/myst-parser[] >=dev-python/docutils-0.17.0[] ) shell? ( dev-python/ptpython[] dev-python/rich[] ) speedups? ( >=dev-python/orjson-3.11.1[] >=dev-python/kasa-crypt-0.2.0[] )
test? ( dev-python/pytest-asyncio[] dev-python/pytest-cov[] dev-python/pytest-sugar[] )