Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
93 lines
1.7 KiB
Nix
93 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
acme,
|
|
aiohttp,
|
|
atomicwrites-homeassistant,
|
|
attrs,
|
|
buildPythonPackage,
|
|
ciso8601,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
freezegun,
|
|
pycognito,
|
|
pyjwt,
|
|
pytest-aiohttp,
|
|
pytest-socket,
|
|
pytest-timeout,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
sentence-stream,
|
|
setuptools,
|
|
snitun,
|
|
syrupy,
|
|
webrtc-models,
|
|
xmltodict,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hass-nabucasa";
|
|
version = "1.1.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nabucasa";
|
|
repo = "hass-nabucasa";
|
|
tag = version;
|
|
hash = "sha256-4wqlV3stqbraiDBp/g5XNMiUR8SsmGggqXlq6MXXgbM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "0.0.0" "${version}"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonRelaxDeps = [
|
|
"acme"
|
|
"josepy"
|
|
"snitun"
|
|
];
|
|
|
|
dependencies = [
|
|
acme
|
|
aiohttp
|
|
atomicwrites-homeassistant
|
|
attrs
|
|
ciso8601
|
|
cryptography
|
|
pycognito
|
|
pyjwt
|
|
sentence-stream
|
|
snitun
|
|
webrtc-models
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pytest-aiohttp
|
|
pytest-socket
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
syrupy
|
|
xmltodict
|
|
];
|
|
|
|
disabledTests = [
|
|
# mock time 10800s (3h) vs 43200s (12h)
|
|
"test_subscription_reconnection_handler_renews_and_starts"
|
|
];
|
|
|
|
pythonImportsCheck = [ "hass_nabucasa" ];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|