2020-09-25 04:45:31 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
|
|
, requests
|
|
|
|
, websocket_client
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "samsungtvws";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.6.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "09nls4n0lbnr8nj8105lagr9h2my8lb1s2k285kmsbli36ywd8lj";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
websocket_client
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "samsungtvws" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Samsung Smart TV WS API wrapper";
|
|
|
|
homepage = "https://github.com/xchwarze/samsung-tv-ws-api";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|