2020-01-17 09:00:51 +01:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy27, requests }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bravia-tv";
|
2020-11-20 07:15:54 +01:00
|
|
|
version = "1.0.8";
|
2020-01-17 09:00:51 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dcnielsen90";
|
|
|
|
repo = "python-bravia-tv";
|
|
|
|
rev = "v${version}";
|
2020-11-20 07:15:54 +01:00
|
|
|
sha256 = "0djwy4z1y173q3mnbngp754yrwzmm6h3x0rshvrvd64b78x1bsmp";
|
2020-01-17 09:00:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|