evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / jsonrpc-websocket / default.nix
blob1ec395bc5a505b59cf1d7b0d77744beb52bf1b5f
2   lib,
3   aiohttp,
4   async-timeout,
5   buildPythonPackage,
6   fetchFromGitHub,
7   jsonrpc-base,
8   pytest-asyncio,
9   pytestCheckHook,
10   pythonOlder,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "jsonrpc-websocket";
16   version = "3.1.5";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "emlove";
23     repo = "jsonrpc-websocket";
24     rev = "refs/tags/${version}";
25     hash = "sha256-CdYa4gcbG3EM1glxLU1hyqbNse87KJKjwSRQSFfDMM0=";
26   };
28   nativeBuildInputs = [ setuptools ];
30   propagatedBuildInputs = [
31     aiohttp
32     async-timeout
33     jsonrpc-base
34   ];
36   nativeCheckInputs = [
37     pytest-asyncio
38     pytestCheckHook
39   ];
41   pytestFlagsArray = [
42     "--asyncio-mode=auto"
43     "tests.py"
44   ];
46   pythonImportsCheck = [ "jsonrpc_websocket" ];
48   meta = with lib; {
49     description = "JSON-RPC websocket client library for asyncio";
50     homepage = "https://github.com/emlove/jsonrpc-websocket";
51     license = licenses.bsd3;
52     maintainers = with maintainers; [ peterhoeg ];
53   };