1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, netifaces
6}:
7
8buildPythonPackage rec {
9 pname = "aioshelly";
10 version = "0.6.3";
11
12 src = fetchFromGitHub {
13 owner = "home-assistant-libs";
14 repo = pname;
15 rev = version;
16 sha256 = "sha256-c4EFR7rcYdrCdM0AfmX/d7cP4woh6P1iAjeSQV9ieKM=";
17 };
18
19 propagatedBuildInputs = [
20 aiohttp
21 netifaces
22 ];
23
24 # Project has no test
25 doCheck = false;
26 pythonImportsCheck = [ "aioshelly" ];
27
28 meta = with lib; {
29 description = "Python library to control Shelly";
30 homepage = "https://github.com/home-assistant-libs/aioshelly";
31 changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${version}";
32 license = with licenses; [ asl20 ];
33 maintainers = with maintainers; [ fab ];
34 };
35}