about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ajsonrpc/default.nix
blob: e5a81d9cfa6e1f5641edc62132934b23e05e3ede (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
{ lib, pythonOlder, buildPythonPackage, fetchPypi, pytestCheckHook }:

buildPythonPackage rec {
  pname = "ajsonrpc";
  version = "1.1.0";

  disabled = pythonOlder "3.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1b5r8975wdnk3qnc1qjnn4lkxmqcir3brbwnxml9ii90dnsw408a";
  };

  checkInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "ajsonrpc" ];

  meta = with lib; {
    description = "Async JSON-RPC 2.0 protocol + asyncio server";
    homepage = "https://github.com/pavlov99/ajsonrpc";
    license = licenses.mit;
    maintainers = with maintainers; [ oxzi ];
  };
}