24 buildPythonPackage rec {
25 pname = "python-kasa";
29 disabled = pythonOlder "3.9";
31 src = fetchFromGitHub {
32 owner = "python-kasa";
34 rev = "refs/tags/${version}";
35 hash = "sha256-405FrKG1jZNrxTmz/K8vqwPhiOqrxURWVCpyFQRJeXc=";
38 build-system = [ hatchling ];
57 optional-dependencies = {
68 pytestFlagsArray = [ "--asyncio-mode=auto" ];
71 # Skip the examples tests
72 "kasa/tests/test_readme_examples.py"
75 pythonImportsCheck = [ "kasa" ];
78 description = "Python API for TP-Link Kasa Smarthome products";
79 homepage = "https://python-kasa.readthedocs.io/";
80 changelog = "https://github.com/python-kasa/python-kasa/blob/${version}/CHANGELOG.md";
81 license = licenses.gpl3Plus;
82 maintainers = with maintainers; [ fab ];