1{
2 lib,
3 isPy27,
4 buildPythonPackage,
5 fetchPypi,
6 pytestCheckHook,
7 mock,
8}:
9
10let
11 pythonEnv = lib.optional isPy27 mock;
12in
13buildPythonPackage rec {
14 pname = "json-rpc";
15 version = "1.15.0";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-5kQdVsHc1UJByTfQotzRk73wvcU5tTFlJHE/VUt/hbk=";
21 };
22
23 nativeCheckInputs = pythonEnv ++ [ pytestCheckHook ];
24
25 nativeBuildInputs = pythonEnv;
26
27 meta = with lib; {
28 description = "JSON-RPC 1/2 transport implementation";
29 homepage = "https://github.com/pavlov99/json-rpc";
30 license = licenses.mit;
31 maintainers = with maintainers; [ oxzi ];
32 };
33}