2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
acme,
|
|
|
|
aiohttp,
|
|
|
|
atomicwrites-homeassistant,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
ciso8601,
|
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pycognito,
|
|
|
|
pyjwt,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytest-timeout,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
setuptools,
|
|
|
|
snitun,
|
|
|
|
syrupy,
|
|
|
|
xmltodict,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hass-nabucasa";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.81.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nabucasa";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "hass-nabucasa";
|
2023-04-12 12:48:02 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-/sY/JijBCcGcbMjoX0yuhFIWvU+TFVN8sRxBx+CDVVs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDeps = [ "acme" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-02-05 17:12:51 +00:00
|
|
|
acme
|
|
|
|
aiohttp
|
2022-07-14 12:49:19 +00:00
|
|
|
atomicwrites-homeassistant
|
2021-02-05 17:12:51 +00:00
|
|
|
attrs
|
2023-11-16 04:20:00 +00:00
|
|
|
ciso8601
|
|
|
|
cryptography
|
2021-02-05 17:12:51 +00:00
|
|
|
pycognito
|
2024-04-21 15:54:59 +00:00
|
|
|
pyjwt
|
2021-02-05 17:12:51 +00:00
|
|
|
snitun
|
2020-06-15 15:56:04 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pytest-aiohttp
|
2023-05-24 13:37:59 +00:00
|
|
|
pytest-timeout
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
syrupy
|
|
|
|
xmltodict
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "hass_nabucasa" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Python module for the Home Assistant cloud integration";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/NabuCasa/hass-nabucasa";
|
2023-04-12 12:48:02 +00:00
|
|
|
changelog = "https://github.com/NabuCasa/hass-nabucasa/releases/tag/${version}";
|
2021-03-15 08:37:03 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
|
|
};
|
|
|
|
}
|