Files
2026-07-15 03:12:33 +02:00

52 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyprojectVersionPatchHook,
# build-system
poetry-core,
# dependencies
aiohttp,
# tests
aioresponses,
pytest-aiohttp,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "dio-chacon-wifi-api";
version = "1.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "cnico";
repo = "dio-chacon-wifi-api";
tag = "v${version}";
hash = "sha256-c91xCrlNpCutZZYO6y0pOaqPCF4exbr7xVxfsf5LI0Q=";
};
nativeBuildInputs = [ pyprojectVersionPatchHook ];
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [ "dio_chacon_wifi_api" ];
meta = {
description = "Python API via wifi for DIO devices from Chacon. Useful for homeassistant or other automations";
homepage = "https://github.com/cnico/dio-chacon-wifi-api";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ hexa ];
};
}