Files
nixpkgs/pkgs/development/python-modules/aioshelly/default.nix
T
2026-01-08 18:05:44 +00:00

58 lines
1.1 KiB
Nix

{
lib,
aiohttp,
aioresponses,
bleak-retry-connector,
bluetooth-data-tools,
buildPythonPackage,
fetchFromGitHub,
habluetooth,
orjson,
pytest-asyncio,
pytestCheckHook,
setuptools,
yarl,
zeroconf,
}:
buildPythonPackage rec {
pname = "aioshelly";
version = "13.23.1";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aioshelly";
tag = version;
hash = "sha256-vAYhOBfwDKWO0K4pHVf3qqpXTztb5Qzn8TEzk6ecbw0=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
bleak-retry-connector
bluetooth-data-tools
habluetooth
orjson
yarl
zeroconf
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aioshelly" ];
meta = {
description = "Python library to control Shelly";
homepage = "https://github.com/home-assistant-libs/aioshelly";
changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}