1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2 , pytestCheckHook, mock, pytestcov, coverage
3 , future, futures, ujson, isPy38
6 buildPythonPackage rec {
7 pname = "python-jsonrpc-server";
10 src = fetchFromGitHub {
12 repo = "python-jsonrpc-server";
14 sha256 = "0pcf50qvcxqnz3db58whqd8z89cdph19pfs1whgfm0zmwbwk0lw6";
18 sed -i "s/version=versioneer.get_version(),/version=\"$version\",/g" setup.py
22 pytestCheckHook mock pytestcov coverage
25 propagatedBuildInputs = [ future ujson ]
26 ++ lib.optional (pythonOlder "3.2") futures;
29 homepage = "https://github.com/palantir/python-jsonrpc-server";
30 description = "A Python 2 and 3 asynchronous JSON RPC server";
31 license = licenses.mit;
32 maintainers = [ maintainers.mic92 ];