1{ lib, pythonOlder, buildPythonPackage, fetchPypi, pytestCheckHook }:
2
3buildPythonPackage rec {
4 pname = "ajsonrpc";
5 version = "1.2.0";
6
7 disabled = pythonOlder "3.5";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "791bac18f0bf0dee109194644f151cf8b7ff529c4b8d6239ac48104a3251a19f";
12 };
13
14 nativeCheckInputs = [ pytestCheckHook ];
15
16 pythonImportsCheck = [ "ajsonrpc" ];
17
18 meta = with lib; {
19 description = "Async JSON-RPC 2.0 protocol + asyncio server";
20 homepage = "https://github.com/pavlov99/ajsonrpc";
21 license = licenses.mit;
22 maintainers = with maintainers; [ oxzi ];
23 };
24}