nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 49 lines 889 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiohttp 5, jsonrpc-base 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "jsonrpc-websocket"; 13 version = "3.1.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "emlove"; 20 repo = "jsonrpc-websocket"; 21 rev = version; 22 sha256 = "aAXY1OUsF83rGQ1sg1lDrbWmxWqJJ+ZnuvHR1Y+ZDs4="; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 jsonrpc-base 28 ]; 29 30 checkInputs = [ 31 pytestCheckHook 32 pytest-asyncio 33 ]; 34 35 pytestFlagsArray = [ 36 "tests.py" 37 ]; 38 39 pythonImportsCheck = [ 40 "jsonrpc_websocket" 41 ]; 42 43 meta = with lib; { 44 description = "A JSON-RPC websocket client library for asyncio"; 45 homepage = "https://github.com/emlove/jsonrpc-websocket"; 46 license = licenses.bsd3; 47 maintainers = with maintainers; [ peterhoeg ]; 48 }; 49}