depot/third_party/nixpkgs/pkgs/development/python-modules/aioshelly/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

54 lines
1 KiB
Nix

{
lib,
aiohttp,
bluetooth-data-tools,
buildPythonPackage,
fetchFromGitHub,
habluetooth,
orjson,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
yarl,
}:
buildPythonPackage rec {
pname = "aioshelly";
version = "11.4.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aioshelly";
rev = "refs/tags/${version}";
hash = "sha256-aJA+iE8cyUPrL2n72N8/HI8//h0qR6k/hgD34vpwI+0=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
bluetooth-data-tools
habluetooth
orjson
yarl
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aioshelly" ];
meta = with lib; {
description = "Python library to control Shelly";
homepage = "https://github.com/home-assistant-libs/aioshelly";
changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}