1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "govee-local-api";
12 version = "1.5.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.10";
16
17 src = fetchFromGitHub {
18 owner = "Galorhallen";
19 repo = "govee-local-api";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-pmExXQmkkjeMHegXV/b94a95qkoOHA7SJOkR1NUV4lE=";
22 };
23
24 build-system = [ poetry-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "govee_local_api" ];
29
30 meta = with lib; {
31 description = "Library to communicate with Govee local API";
32 homepage = "https://github.com/Galorhallen/govee-local-api";
33 changelog = "https://github.com/Galorhallen/govee-local-api/releases/tag/v${version}";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ fab ];
36 };
37}