python3Packages.samsungtvws: init at 1.5.3

wip/yesman
Martin Weinelt 4 years ago committed by Jon
parent 60cb1123b2
commit f31f620200
  1. 36
      pkgs/development/python-modules/samsungtvws/default.nix
  2. 2
      pkgs/top-level/python-packages.nix

@ -0,0 +1,36 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, requests
, websocket_client
}:
buildPythonPackage rec {
pname = "samsungtvws";
version = "1.5.3";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "054rr8hiacdjfxqssnxnd3xp9hh8350zjzzjvh1199bpps4l1l6n";
};
patchPhase = ''
substituteInPlace setup.py --replace "websocket-client==" "websocket-client>="
'';
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 ];
};
}

@ -3706,6 +3706,8 @@ in {
samsungctl = callPackage ../development/python-modules/samsungctl { };
samsungtvws = callPackage ../development/python-modules/samsungtvws { };
screeninfo = callPackage ../development/python-modules/screeninfo { };
ssdeep = callPackage ../development/python-modules/ssdeep { };

Loading…
Cancel
Save