{ lib, acme, aiohttp, async-timeout, atomicwrites-homeassistant, attrs, buildPythonPackage, ciso8601, cryptography, fetchFromGitHub, freezegun, grpcio, icmplib, josepy, litellm, pycognito, pyjwt, pytest-aiohttp, pytest-socket, pytest-timeout, pytestCheckHook, pythonOlder, sentence-stream, setuptools, snitun, syrupy, voluptuous, webrtc-models, xmltodict, yarl, }: buildPythonPackage rec { pname = "hass-nabucasa"; version = "1.11.0"; pyproject = true; disabled = pythonOlder "3.13"; src = fetchFromGitHub { owner = "nabucasa"; repo = "hass-nabucasa"; tag = version; hash = "sha256-qTOfZy74bF/e8Tw0FMjS53y7prCqIDlBXTDkVG3DUsQ="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "0.0.0" "${version}" ''; build-system = [ setuptools ]; dependencies = [ acme aiohttp async-timeout atomicwrites-homeassistant attrs ciso8601 cryptography grpcio icmplib josepy litellm pycognito pyjwt sentence-stream snitun voluptuous webrtc-models yarl ]; nativeCheckInputs = [ freezegun pytest-aiohttp pytest-socket pytest-timeout pytestCheckHook syrupy xmltodict ]; pythonImportsCheck = [ "hass_nabucasa" ]; meta = { description = "Python module for the Home Assistant cloud integration"; homepage = "https://github.com/NabuCasa/hass-nabucasa"; changelog = "https://github.com/NabuCasa/hass-nabucasa/releases/tag/${src.tag}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ Scriptkiddi ]; }; }