2021-04-09 23:23:27 +00:00
|
|
|
{ lib
|
2022-04-30 11:19:47 +00:00
|
|
|
, aiohttp
|
2021-04-09 23:23:27 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jsonrpc-base
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytestCheckHook
|
2022-04-30 11:19:47 +00:00
|
|
|
, pythonOlder
|
2021-04-09 23:23:27 +00:00
|
|
|
}:
|
2018-02-26 11:38:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonrpc-async";
|
2022-06-05 10:52:49 +00:00
|
|
|
version = "2.1.1";
|
2022-04-30 11:19:47 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-02-26 11:38:16 +00:00
|
|
|
|
2021-04-09 23:23:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emlove";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-06-05 10:52:49 +00:00
|
|
|
hash = "sha256-HhesXzxVjhWJkubiBi6sMoXi/zicqn99dqT5bilycS8=";
|
2018-02-26 11:38:16 +00:00
|
|
|
};
|
|
|
|
|
2022-04-30 11:19:47 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
jsonrpc-base
|
|
|
|
];
|
2018-02-26 11:38:16 +00:00
|
|
|
|
2021-04-09 23:23:27 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests.py"
|
|
|
|
];
|
|
|
|
|
2022-04-30 11:19:47 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jsonrpc_async"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-26 11:38:16 +00:00
|
|
|
description = "A JSON-RPC client library for asyncio";
|
2021-04-09 23:23:27 +00:00
|
|
|
homepage = "https://github.com/emlove/jsonrpc-async";
|
2018-02-26 11:38:16 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|