2021-04-10 01:28:18 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-11-23 14:46:41 +01:00
|
|
|
, fetchFromGitHub
|
2021-04-10 01:28:18 +02:00
|
|
|
, aiohttp
|
|
|
|
, jsonrpc-base
|
2020-11-30 16:11:43 -08:00
|
|
|
, pytest-asyncio
|
2021-04-10 01:28:18 +02:00
|
|
|
, pytestCheckHook
|
2021-11-23 14:46:41 +01:00
|
|
|
, pythonOlder
|
2020-11-30 16:11:43 -08:00
|
|
|
}:
|
2018-02-26 19:38:32 +08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonrpc-websocket";
|
2022-06-05 12:53:33 +02:00
|
|
|
version = "3.1.4";
|
2021-11-23 14:46:41 +01:00
|
|
|
format = "setuptools";
|
2018-02-26 19:38:32 +08:00
|
|
|
|
2021-11-23 14:46:41 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emlove";
|
|
|
|
repo = "jsonrpc-websocket";
|
|
|
|
rev = version;
|
2022-06-05 12:53:33 +02:00
|
|
|
sha256 = "sha256-xSOITOVtsNMEDrq610l8LNipLdyMWzKOQDedQEGaNOQ=";
|
2018-02-26 19:38:32 +08:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:28:18 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
jsonrpc-base
|
|
|
|
];
|
2019-12-07 09:50:56 +01:00
|
|
|
|
2021-04-10 01:28:18 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2018-02-26 19:38:32 +08:00
|
|
|
|
2021-11-23 14:46:41 +01:00
|
|
|
pytestFlagsArray = [
|
2022-07-21 13:08:15 +02:00
|
|
|
"--asyncio-mode=legacy"
|
2021-11-23 14:46:41 +01:00
|
|
|
"tests.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"jsonrpc_websocket"
|
|
|
|
];
|
2020-11-30 16:11:43 -08:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-26 19:38:32 +08:00
|
|
|
description = "A JSON-RPC websocket client library for asyncio";
|
2021-04-10 01:28:18 +02:00
|
|
|
homepage = "https://github.com/emlove/jsonrpc-websocket";
|
2018-02-26 19:38:32 +08:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|