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