Files
nixpkgs/pkgs/development/python-modules/hass-nabucasa/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

99 lines
1.7 KiB
Nix

{
lib,
acme,
aiohttp,
async-timeout,
atomicwrites-homeassistant,
attrs,
buildPythonPackage,
ciso8601,
cryptography,
fetchFromGitHub,
freezegun,
grpcio,
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.7.0";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "nabucasa";
repo = "hass-nabucasa";
tag = version;
hash = "sha256-22DCn6ITrpH4bevAvfogA1f4llwuk5vIn3rKieedVfg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "0.0.0" "${version}"
'';
build-system = [ setuptools ];
pythonRelaxDeps = [
"acme"
"snitun"
];
dependencies = [
acme
aiohttp
async-timeout
atomicwrites-homeassistant
attrs
ciso8601
cryptography
grpcio
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 ];
};
}