02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
50 lines
924 B
Nix
50 lines
924 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, jsonrpc-base
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonrpc-websocket";
|
|
version = "3.1.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emlove";
|
|
repo = "jsonrpc-websocket";
|
|
rev = version;
|
|
sha256 = "sha256-xSOITOVtsNMEDrq610l8LNipLdyMWzKOQDedQEGaNOQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
jsonrpc-base
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--asyncio-mode=legacy"
|
|
"tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"jsonrpc_websocket"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A JSON-RPC websocket client library for asyncio";
|
|
homepage = "https://github.com/emlove/jsonrpc-websocket";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
};
|
|
}
|