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

38 lines
706 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.0.0";
2018-02-26 11:38:32 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "0fmw8xjzlhi7r84swn4w3njy389qqll5ad5ljdq5n2wpg424k98h";
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 ];
};
}