My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/jsonrpc-websocket/default.nix

49 lines
889 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, jsonrpc-base
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "jsonrpc-websocket";
version = "3.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "emlove";
repo = "jsonrpc-websocket";
rev = version;
sha256 = "aAXY1OUsF83rGQ1sg1lDrbWmxWqJJ+ZnuvHR1Y+ZDs4=";
};
propagatedBuildInputs = [
aiohttp
jsonrpc-base
];
checkInputs = [
pytestCheckHook
pytest-asyncio
];
pytestFlagsArray = [
"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 ];
};
}