Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 657 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, requests 3, websocket_client 4}: 5 6buildPythonPackage rec { 7 pname = "samsungtvws"; 8 version = "1.6.0"; 9 disabled = isPy27; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "09nls4n0lbnr8nj8105lagr9h2my8lb1s2k285kmsbli36ywd8lj"; 14 }; 15 16 propagatedBuildInputs = [ 17 websocket_client 18 requests 19 ]; 20 21 # no tests 22 doCheck = false; 23 24 pythonImportsCheck = [ "samsungtvws" ]; 25 26 meta = with lib; { 27 description = "Samsung Smart TV WS API wrapper"; 28 homepage = "https://github.com/xchwarze/samsung-tv-ws-api"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ hexa ]; 31 }; 32}