3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/jsonrpc-async/default.nix

39 lines
728 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, jsonrpc-base
, pytest-aiohttp
, pytestCheckHook
}:
2018-02-26 11:38:16 +00:00
buildPythonPackage rec {
pname = "jsonrpc-async";
version = "2.0.0";
2018-02-26 11:38:16 +00:00
src = fetchFromGitHub {
owner = "emlove";
repo = pname;
rev = version;
sha256 = "1ff3523rwgira5llmf5iriwqag7b6ln9vmj0s70yyc6k98yg06rp";
2018-02-26 11:38:16 +00:00
};
propagatedBuildInputs = [ aiohttp jsonrpc-base ];
checkInputs = [
pytest-aiohttp
pytestCheckHook
];
pytestFlagsArray = [
"tests.py"
];
meta = with lib; {
2018-02-26 11:38:16 +00:00
description = "A JSON-RPC client library for asyncio";
homepage = "https://github.com/emlove/jsonrpc-async";
2018-02-26 11:38:16 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}