{ lib, aiohttp, async-timeout, buildPythonPackage, fetchPypi, pytest-asyncio, pytest-httpserver, pytestCheckHook, setuptools-scm, voluptuous, }: buildPythonPackage rec { pname = "solax"; version = "3.2.4"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-60FIDhd60zaWcwPnq7P7WxuXQc1MivWNTctj3TuZF3k="; }; build-system = [ setuptools-scm ]; dependencies = [ aiohttp async-timeout voluptuous ]; nativeCheckInputs = [ pytest-asyncio pytest-httpserver pytestCheckHook ]; pythonImportsCheck = [ "solax" ]; disabledTests = [ # Tests require network access "test_discovery" "test_smoke" ]; meta = { description = "Python wrapper for the Solax Inverter API"; homepage = "https://github.com/squishykid/solax"; changelog = "https://github.com/squishykid/solax/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; }