504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
44 lines
917 B
Nix
44 lines
917 B
Nix
{ lib
|
|
, aiohttp
|
|
, bluetooth-data-tools
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, orjson
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioshelly";
|
|
version = "6.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-LkcUcGx31GwrbmBWCyEuD5x9yzeszUHBCYSBgTzgz9A=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
bluetooth-data-tools
|
|
orjson
|
|
];
|
|
|
|
# Project has no test
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|