Files
nixpkgs/pkgs/development/python-modules/dio-chacon-wifi-api/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

49 lines
945 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
aiohttp,
# tests
aioresponses,
pytest-aiohttp,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "dio-chacon-wifi-api";
version = "1.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "cnico";
repo = "dio-chacon-wifi-api";
tag = "v${version}";
hash = "sha256-YlomB3/EBX2tFifjcF38q+sr2z1bHwUjmqyNE2wTp90=";
};
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 ];
};
}