Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / jsonrpc-async / default.nix
blob613d4478af8775c5dd195413e4a5ac8be4d25977
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , jsonrpc-base
6 , pytest-aiohttp
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "jsonrpc-async";
13   version = "2.1.2";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "emlove";
20     repo = pname;
21     rev = version;
22     hash = "sha256-KOnycsOZFDEVj8CJDwGbdtbOpMPQMVdrXbHG0fzr9PI=";
23   };
25   propagatedBuildInputs = [
26     aiohttp
27     jsonrpc-base
28   ];
30   nativeCheckInputs = [
31     pytest-aiohttp
32     pytestCheckHook
33   ];
35   pytestFlagsArray = [
36     "tests.py"
37   ];
39   pythonImportsCheck = [
40     "jsonrpc_async"
41   ];
43   meta = with lib; {
44     description = "A JSON-RPC client library for asyncio";
45     homepage = "https://github.com/emlove/jsonrpc-async";
46     license = licenses.bsd3;
47     maintainers = with maintainers; [ peterhoeg ];
48   };