Files
nixpkgs/pkgs/development/python-modules/evohome-async/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

72 lines
1.3 KiB
Nix

{
lib,
aiofiles,
aiohttp,
aioresponses,
aiozoneinfo,
asyncclick,
buildPythonPackage,
debugpy,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytest-freezer,
pytestCheckHook,
pythonOlder,
pyyaml,
syrupy,
voluptuous,
}:
buildPythonPackage rec {
pname = "evohome-async";
version = "1.0.6";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "zxdavb";
repo = "evohome-async";
tag = version;
hash = "sha256-8oeW6NWqYcZF+s2kRfeoVAp8JBbuDn+NQ0RU6nxVTAc=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
aiozoneinfo
voluptuous
];
optional-dependencies = {
cli = [
aiofiles
asyncclick
debugpy
];
};
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-freezer
pytestCheckHook
pyyaml
syrupy
]
++ optional-dependencies.cli;
pythonImportsCheck = [ "evohomeasync2" ];
meta = {
description = "Python client for connecting to Honeywell's TCC RESTful API";
homepage = "https://github.com/zxdavb/evohome-async";
changelog = "https://github.com/zxdavb/evohome-async/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "evo-client";
};
}