1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, websockets
6}:
7
8buildPythonPackage rec {
9 pname = "aiowebostv";
10 version = "0.3.3";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.8";
14
15 src = fetchFromGitHub {
16 owner = "home-assistant-libs";
17 repo = pname;
18 rev = "refs/tags/v${version}";
19 hash = "sha256-djcfYpHkhXhjQwJzHP3mNflKrcP6Yj3/z62qeXg67ss=";
20 };
21
22 propagatedBuildInputs = [
23 websockets
24 ];
25
26 # Module doesn't have tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "aiowebostv"
31 ];
32
33 meta = with lib; {
34 description = "Module to interact with LG webOS based TV devices";
35 homepage = "https://github.com/home-assistant-libs/aiowebostv";
36 changelog = "https://github.com/home-assistant-libs/aiowebostv/releases/tag/v${version}";
37 license = with licenses; [ asl20 ];
38 maintainers = with maintainers; [ fab ];
39 };
40}