1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, pytestCheckHook 6, python-socks 7}: 8 9buildPythonPackage rec { 10 pname = "websocket-client"; 11 version = "1.2.1"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "8dfb715d8a992f5712fff8c843adae94e22b22a99b2c5e6b0ec4a1a981cc4e0d"; 17 }; 18 19 propagatedBuildInputs = [ 20 python-socks 21 ]; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "websocket" ]; 28 29 meta = with lib; { 30 description = "Websocket client for Python"; 31 homepage = "https://github.com/websocket-client/websocket-client"; 32 changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog"; 33 license = licenses.lgpl21Plus; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}