python312Packages.dio-chacon-wifi-api: init at 1.1.0

Python library for DIO Chacon wifi's protocol for shutters and switches.
This commit is contained in:
Martin Weinelt 2024-08-09 01:23:54 +02:00
parent 812e095056
commit 3d55123591
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
aiohttp,
# tests
aioresponses,
pytest-aiohttp,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "dio-chacon-wifi-api";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "cnico";
repo = "dio-chacon-wifi-api";
rev = "v${version}";
hash = "sha256-TeunMvkiQw4TzLb2dsAHAg49nUzD3DGiO0DuXKGcICU=";
};
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [ "dio_chacon_wifi_api" ];
meta = with lib; {
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 = licenses.gpl3Only;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -3109,6 +3109,8 @@ self: super: with self; {
dinghy = callPackage ../development/python-modules/dinghy { };
dio-chacon-wifi-api = callPackage ../development/python-modules/dio-chacon-wifi-api { };
diofant = callPackage ../development/python-modules/diofant { };
dipy = callPackage ../development/python-modules/dipy { };