1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 pythonOlder,
7 sqlitedict,
8 websockets,
9}:
10
11buildPythonPackage rec {
12 pname = "aiopylgtv";
13 version = "0.4.1";
14 format = "setuptools";
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "bendavid";
19 repo = "aiopylgtv";
20 rev = version;
21 hash = "sha256-NkWJGy5QUrhpbARoscrXy/ilCjAz01YxeVTH0I+IjNM=";
22 };
23
24 propagatedBuildInputs = [
25 numpy
26 sqlitedict
27 websockets
28 ];
29
30 # Project has no tests
31 doCheck = false;
32 pythonImportsCheck = [ "aiopylgtv" ];
33
34 meta = with lib; {
35 description = "Python library to control webOS based LG TV units";
36 mainProgram = "aiopylgtvcommand";
37 homepage = "https://github.com/bendavid/aiopylgtv";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}