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