Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / jsonrpc-async / default.nix
blob9a53e852f1a19cb440286b8dfda54113368ee33c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , aiohttp
5 , jsonrpc-base
6 , pytest-aiohttp
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "jsonrpc-async";
12   version = "2.0.0";
14   src = fetchFromGitHub {
15     owner = "emlove";
16     repo = pname;
17     rev = version;
18     sha256 = "1ff3523rwgira5llmf5iriwqag7b6ln9vmj0s70yyc6k98yg06rp";
19   };
21   propagatedBuildInputs = [ aiohttp jsonrpc-base ];
23   checkInputs = [
24     pytest-aiohttp
25     pytestCheckHook
26   ];
28   pytestFlagsArray = [
29     "tests.py"
30   ];
32   meta = with lib; {
33     description = "A JSON-RPC client library for asyncio";
34     homepage = "https://github.com/emlove/jsonrpc-async";
35     license = licenses.bsd3;
36     maintainers = with maintainers; [ peterhoeg ];
37   };