mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / jsonrpc-async / default.nix
blob52224a0b8dcdf90e16b00fade170dbbac9294dc0
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   jsonrpc-base,
7   pytest-aiohttp,
8   pytestCheckHook,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "jsonrpc-async";
14   version = "2.1.2";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "emlove";
21     repo = pname;
22     rev = version;
23     hash = "sha256-KOnycsOZFDEVj8CJDwGbdtbOpMPQMVdrXbHG0fzr9PI=";
24   };
26   propagatedBuildInputs = [
27     aiohttp
28     jsonrpc-base
29   ];
31   nativeCheckInputs = [
32     pytest-aiohttp
33     pytestCheckHook
34   ];
36   pytestFlagsArray = [ "tests.py" ];
38   pythonImportsCheck = [ "jsonrpc_async" ];
40   meta = with lib; {
41     description = "JSON-RPC client library for asyncio";
42     homepage = "https://github.com/emlove/jsonrpc-async";
43     license = licenses.bsd3;
44     maintainers = with maintainers; [ peterhoeg ];
45   };