Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 40 lines 820 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, pytestCheckHook 6, python-socks 7}: 8 9buildPythonPackage rec { 10 pname = "websocket-client"; 11 version = "1.5.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-Pwnm2CMIklRxMhd/V1pOPnPP3wZSbiDMAqocO0cYTUA="; 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}