1{
2 lib,
3 aiohttp,
4 bleak,
5 bleak-retry-connector,
6 buildPythonPackage,
7 certifi,
8 fetchFromGitHub,
9 hatchling,
10 pytest-asyncio,
11 pytestCheckHook,
12 pythonOlder,
13}:
14
15buildPythonPackage {
16 pname = "govee-led-wez";
17 version = "0.0.15";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "wez";
24 repo = "govee-py";
25 # https://github.com/wez/govee-py/issues/2
26 rev = "931273e3689838613d63bc1bcc65ee744fa999f4";
27 hash = "sha256-VMH7sot9e2SYMyBNutyW6oCCjp2N+EKukxn1Dla3AlY=";
28 };
29
30 nativeBuildInputs = [ hatchling ];
31
32 propagatedBuildInputs = [
33 aiohttp
34 bleak
35 bleak-retry-connector
36 certifi
37 ];
38
39 nativeCheckInputs = [
40 pytest-asyncio
41 pytestCheckHook
42 ];
43
44 pythonImportsCheck = [ "govee_led_wez" ];
45
46 meta = with lib; {
47 description = "Control Govee Lights from Python";
48 homepage = "https://github.com/wez/govee-py";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ SuperSandro2000 ];
51 };
52}