2020-01-17 08:00:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy27, requests }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bravia-tv";
|
2020-11-20 06:15:54 +00:00
|
|
|
version = "1.0.8";
|
2020-01-17 08:00:51 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dcnielsen90";
|
|
|
|
repo = "python-bravia-tv";
|
|
|
|
rev = "v${version}";
|
2020-11-20 06:15:54 +00:00
|
|
|
sha256 = "0djwy4z1y173q3mnbngp754yrwzmm6h3x0rshvrvd64b78x1bsmp";
|
2020-01-17 08:00:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
# package does not include tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "bravia_tv" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dcnielsen90/python-bravia-tv";
|
|
|
|
description = "Python library for Sony Bravia TV remote control";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|