1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 requests,
7}:
8
9buildPythonPackage rec {
10 pname = "bravia-tv";
11 version = "1.0.11";
12 format = "setuptools";
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "dcnielsen90";
17 repo = "python-bravia-tv";
18 rev = "v${version}";
19 hash = "sha256-g47bDd5bZl0jad3o6T1jJLcnZj8nx944kz3Vxv8gD2U=";
20 };
21
22 propagatedBuildInputs = [ requests ];
23
24 # Package does not include tests
25 doCheck = false;
26
27 pythonImportsCheck = [ "bravia_tv" ];
28
29 meta = with lib; {
30 homepage = "https://github.com/dcnielsen90/python-bravia-tv";
31 description = "Python library for Sony Bravia TV remote control";
32 license = licenses.mit;
33 maintainers = with maintainers; [ ];
34 };
35}