1{ lib
2, buildPythonPackage
3, fetchPypi
4, aiohttp
5, jsonrpc-base
6, pytest-asyncio
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "jsonrpc-websocket";
12 version = "3.1.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "eeaaac2330f6f1cdafd378ddf5287a47a7c8609ab212a2f576121c1e61c7a344";
17 };
18
19 propagatedBuildInputs = [
20 aiohttp
21 jsonrpc-base
22 ];
23
24 checkInputs = [
25 pytestCheckHook
26 pytest-asyncio
27 ];
28
29 pytestFlagsArray = [ "tests.py" ];
30
31 meta = with lib; {
32 description = "A JSON-RPC websocket client library for asyncio";
33 homepage = "https://github.com/emlove/jsonrpc-websocket";
34 license = licenses.bsd3;
35 maintainers = with maintainers; [ peterhoeg ];
36 };
37}