nixpkgs/pkgs/development/python-modules/jsonrpc-websocket/default.nix

38 lines
718 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, jsonrpc-base
, pytest-asyncio
, pytestCheckHook
}:
2018-02-26 11:38:32 +00:00
buildPythonPackage rec {
pname = "jsonrpc-websocket";
version = "3.1.0";
2018-02-26 11:38:32 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "eeaaac2330f6f1cdafd378ddf5287a47a7c8609ab212a2f576121c1e61c7a344";
2018-02-26 11:38:32 +00:00
};
propagatedBuildInputs = [
aiohttp
jsonrpc-base
];
checkInputs = [
pytestCheckHook
pytest-asyncio
];
2018-02-26 11:38:32 +00:00
pytestFlagsArray = [ "tests.py" ];
meta = with lib; {
2018-02-26 11:38:32 +00:00
description = "A JSON-RPC websocket client library for asyncio";
homepage = "https://github.com/emlove/jsonrpc-websocket";
2018-02-26 11:38:32 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}