fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
50 lines
1,010 B
Nix
50 lines
1,010 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
bluetooth-data-tools,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
habluetooth,
|
|
orjson,
|
|
pythonOlder,
|
|
setuptools,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioshelly";
|
|
version = "10.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = "aioshelly";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-HHFp1n0oTZznByGMH2DD/LnK8mSuAe7ex2dA951MtpY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
bluetooth-data-tools
|
|
habluetooth
|
|
orjson
|
|
yarl
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|