1{ lib
2, aiohttp
3, bluetooth-data-tools
4, buildPythonPackage
5, fetchFromGitHub
6, orjson
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "aioshelly";
12 version = "6.0.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchFromGitHub {
18 owner = "home-assistant-libs";
19 repo = pname;
20 rev = "refs/tags/${version}";
21 hash = "sha256-mB9BEVqbHcoUaygIgrtqk20wMJkL+dWpbeyG5VP4+sg=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 bluetooth-data-tools
27 orjson
28 ];
29
30 # Project has no test
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "aioshelly"
35 ];
36
37 meta = with lib; {
38 description = "Python library to control Shelly";
39 homepage = "https://github.com/home-assistant-libs/aioshelly";
40 changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${version}";
41 license = with licenses; [ asl20 ];
42 maintainers = with maintainers; [ fab ];
43 };
44}