2021-04-10 00:28:18 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, jsonrpc-base
|
2020-12-01 00:11:43 +00:00
|
|
|
, pytest-asyncio
|
2021-04-10 00:28:18 +01:00
|
|
|
, pytestCheckHook
|
2020-12-01 00:11:43 +00:00
|
|
|
}:
|
2018-02-26 11:38:32 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonrpc-websocket";
|
2021-04-10 00:28:18 +01:00
|
|
|
version = "3.0.0";
|
2018-02-26 11:38:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-10 00:28:18 +01:00
|
|
|
sha256 = "0fmw8xjzlhi7r84swn4w3njy389qqll5ad5ljdq5n2wpg424k98h";
|
2018-02-26 11:38:32 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 00:28:18 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
jsonrpc-base
|
|
|
|
];
|
2019-12-07 08:50:56 +00:00
|
|
|
|
2021-04-10 00:28:18 +01: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-10 00:28:18 +01:00
|
|
|
homepage = "https://github.com/emlove/jsonrpc-websocket";
|
2018-02-26 11:38:32 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|