1{
2 lib,
3 awesomeversion,
4 buildPythonPackage,
5 aiohttp,
6 fetchFromGitHub,
7 setuptools,
8 pythonOlder,
9 packaging,
10}:
11
12buildPythonPackage rec {
13 pname = "pyswitchbee";
14 version = "1.8.3";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "jafar-atili";
21 repo = "pySwitchbee";
22 tag = version;
23 hash = "sha256-at/HCY6htUz1ej09XPrb2QEyoiOWhIEpgSwJange1cU=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 aiohttp
30 awesomeversion
31 packaging
32 ];
33
34 # Module doesn't have tests
35 doCheck = false;
36
37 pythonImportsCheck = [ "switchbee" ];
38
39 meta = with lib; {
40 description = "Library to control SwitchBee smart home device";
41 homepage = "https://github.com/jafar-atili/pySwitchbee/";
42 changelog = "https://github.com/jafar-atili/pySwitchbee/releases/tag/${version}";
43 license = with licenses; [ asl20 ];
44 maintainers = with maintainers; [ fab ];
45 };
46}