2018-02-26 11:38:32 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2020-12-01 00:11:43 +00:00
|
|
|
, aiohttp, jsonrpc-base, pep8
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
2018-02-26 11:38:32 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonrpc-websocket";
|
2020-11-29 14:04:32 +00:00
|
|
|
version = "1.2.1";
|
2018-02-26 11:38:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:32 +00:00
|
|
|
sha256 = "c343d057b572791ed3107b771c17358bc710772a9a6156047a3cfafb409ed895";
|
2018-02-26 11:38:32 +00:00
|
|
|
};
|
|
|
|
|
2019-12-07 08:50:56 +00:00
|
|
|
nativeBuildInputs = [ pep8 ];
|
|
|
|
|
2018-02-26 11:38:32 +00:00
|
|
|
propagatedBuildInputs = [ aiohttp jsonrpc-base ];
|
|
|
|
|
2020-12-01 00:11:43 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-asyncio ];
|
|
|
|
pytestFlagsArray = [ "tests.py" ];
|
|
|
|
|
2018-02-26 11:38:32 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A JSON-RPC websocket client library for asyncio";
|
2020-04-02 00:37:20 +01:00
|
|
|
homepage = "https://github.com/armills/jsonrpc-websocket";
|
2018-02-26 11:38:32 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|