about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jsonrpc-websocket/default.nix
blob: faecca760d31d2df79d2460665c0daaa08628b4e (plain) (blame)
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
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, jsonrpc-base
, pytest-asyncio
, pytestCheckHook
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "0fmw8xjzlhi7r84swn4w3njy389qqll5ad5ljdq5n2wpg424k98h";
  };

  propagatedBuildInputs = [
    aiohttp
    jsonrpc-base
  ];

  checkInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pytestFlagsArray = [ "tests.py" ];

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