aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/jsonrpc-websocket/default.nix
blob: 4fe136f69b7b1e33a88c1f9732325a1a8cd3667c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, buildPythonPackage, fetchPypi
, aiohttp, jsonrpc-base, pep8
, pytestCheckHook
, pytest-asyncio
}:

buildPythonPackage rec {
  pname = "jsonrpc-websocket";
  version = "1.2.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "c343d057b572791ed3107b771c17358bc710772a9a6156047a3cfafb409ed895";
  };

  nativeBuildInputs = [ pep8 ];

  propagatedBuildInputs = [ aiohttp jsonrpc-base ];

  checkInputs = [ pytestCheckHook pytest-asyncio ];
  pytestFlagsArray = [ "tests.py" ];

  meta = with stdenv.lib; {
    description = "A JSON-RPC websocket client library for asyncio";
    homepage = "https://github.com/armills/jsonrpc-websocket";
    license = licenses.bsd3;
    maintainers = with maintainers; [ peterhoeg ];
  };
}