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