1 { lib, isPy27, buildPythonPackage, fetchPypi, pytestCheckHook, mock }:
4 pythonEnv = lib.optional isPy27 mock;
5 in buildPythonPackage rec {
10 inherit pname version;
11 hash = "sha256-5kQdVsHc1UJByTfQotzRk73wvcU5tTFlJHE/VUt/hbk=";
14 nativeCheckInputs = pythonEnv ++ [ pytestCheckHook ];
16 nativeBuildInputs = pythonEnv;
19 description = "JSON-RPC 1/2 transport implementation";
20 homepage = "https://github.com/pavlov99/json-rpc";
21 license = licenses.mit;
22 maintainers = with maintainers; [ oxzi ];