Files
nixpkgs/pkgs/development/python-modules/intellifire4py/default.nix
T
2026-02-11 17:28:15 +01:00

56 lines
1.1 KiB
Nix

{
lib,
aenum,
buildPythonPackage,
fetchFromGitHub,
aiohttp,
aioresponses,
hatchling,
pydantic,
pytest-asyncio,
pytest-httpx,
pytestCheckHook,
rich,
}:
buildPythonPackage (finalAttrs: {
pname = "intellifire4py";
version = "4.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jeeftor";
repo = "intellifire4py";
tag = "v${finalAttrs.version}";
hash = "sha256-WmjsbxeAAD5b88WDIWasfNkzoY+QO1hbvTVyFLQ7uBk=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
aenum
pydantic
rich
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-httpx
pytestCheckHook
];
pythonImportsCheck = [ "intellifire4py" ];
meta = {
description = "Module to read Intellifire fireplace status data";
homepage = "https://github.com/jeeftor/intellifire4py";
changelog = "https://github.com/jeeftor/intellifire4py/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "intellifire4py";
};
})