nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 54 lines 989 B view raw
1{ 2 lib, 3 aiohttp, 4 async-timeout, 5 buildPythonPackage, 6 fetchFromGitHub, 7 jsonrpc-base, 8 pytest-asyncio_0, 9 pytestCheckHook, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "jsonrpc-websocket"; 15 version = "3.2.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "emlove"; 20 repo = "jsonrpc-websocket"; 21 tag = version; 22 hash = "sha256-SgwEY/5MPEkSrcsQV4qkVgKmYYYsWA2YluReOz7sEjc="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 async-timeout 30 jsonrpc-base 31 ]; 32 33 nativeCheckInputs = [ 34 pytest-asyncio_0 35 pytestCheckHook 36 ]; 37 38 pytestFlags = [ 39 "--asyncio-mode=auto" 40 ]; 41 42 enabledTestPaths = [ 43 "tests.py" 44 ]; 45 46 pythonImportsCheck = [ "jsonrpc_websocket" ]; 47 48 meta = { 49 description = "JSON-RPC websocket client library for asyncio"; 50 homepage = "https://github.com/emlove/jsonrpc-websocket"; 51 license = lib.licenses.bsd3; 52 maintainers = with lib.maintainers; [ peterhoeg ]; 53 }; 54}