2021-04-09 23:28:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, jsonrpc-base
|
2020-12-01 00:11:43 +00:00
|
|
|
, pytest-asyncio
|
2021-04-09 23:28:18 +00:00
|
|
|
, pytestCheckHook
|
2020-12-01 00:11:43 +00:00
|
|
|
}:
|
2018-02-26 11:38:32 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonrpc-websocket";
|
2021-06-18 21:47:24 +00:00
|
|
|
version = "3.1.0";
|
2018-02-26 11:38:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 21:47:24 +00:00
|
|
|
sha256 = "eeaaac2330f6f1cdafd378ddf5287a47a7c8609ab212a2f576121c1e61c7a344";
|
2018-02-26 11:38:32 +00:00
|
|
|
};
|
|
|
|
|
2021-04-09 23:28:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
jsonrpc-base
|
|
|
|
];
|
2019-12-07 08:50:56 +00:00
|
|
|
|
2021-04-09 23:28:18 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2018-02-26 11:38:32 +00:00
|
|
|
|
2020-12-01 00:11:43 +00:00
|
|
|
pytestFlagsArray = [ "tests.py" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-26 11:38:32 +00:00
|
|
|
description = "A JSON-RPC websocket client library for asyncio";
|
2021-04-09 23:28:18 +00:00
|
|
|
homepage = "https://github.com/emlove/jsonrpc-websocket";
|
2018-02-26 11:38:32 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|