2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
xmltodict,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioeagle";
|
|
|
|
version = "1.1.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-libs";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "aioeagle";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-ZO5uODCGebggItsEVKtis0uwU67dmSxc7DHzzkBZ9oQ=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-09-18 10:52:07 +00:00
|
|
|
aiohttp
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "aioeagle" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to control EAGLE-200";
|
|
|
|
homepage = "https://github.com/home-assistant-libs/aioeagle";
|
|
|
|
changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${version}";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|