2020-09-25 04:45:31 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
|
|
, requests
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "samsungtvws";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "2.5.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-AFCN1b80GZ24g3oWe1qqc72yWQy4+/sorL8zwOYM7vo=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2020-09-25 04:45:31 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|