2021-01-15 14:17:45 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, netifaces
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioshelly";
|
2021-01-22 13:37:36 +00:00
|
|
|
version = "0.5.4";
|
2021-01-15 14:17:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-libs";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-22 13:37:36 +00:00
|
|
|
sha256 = "sha256-EjzWx3wcmTfB3OmN0OB37K6wYKVO3HzGEIf+uihas8k=";
|
2021-01-15 14:17:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
netifaces
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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";
|
2021-01-22 13:37:36 +00:00
|
|
|
changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${version}";
|
2021-01-15 14:17:45 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|