2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
bluetooth-data-tools,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
habluetooth,
|
|
|
|
orjson,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
yarl,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioshelly";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "11.1.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-libs";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "aioshelly";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-uCvwqGsQuiFRhpEj9mIBNE8JsG/3uvMptzOXOwUhY3o=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2021-02-05 17:12:51 +00:00
|
|
|
aiohttp
|
2022-12-17 10:02:37 +00:00
|
|
|
bluetooth-data-tools
|
2024-02-29 20:09:43 +00:00
|
|
|
habluetooth
|
2022-12-17 10:02:37 +00:00
|
|
|
orjson
|
2024-02-29 20:09:43 +00:00
|
|
|
yarl
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no test
|
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "aioshelly" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|