1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 mock,
7 pytest-cov,
8 coverage,
9 future,
10 ujson,
11}:
12
13buildPythonPackage rec {
14 pname = "python-jsonrpc-server";
15 version = "0.4.0";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "palantir";
20 repo = "python-jsonrpc-server";
21 rev = version;
22 sha256 = "0pcf50qvcxqnz3db58whqd8z89cdph19pfs1whgfm0zmwbwk0lw6";
23 };
24
25 postPatch = ''
26 sed -i "s/version=versioneer.get_version(),/version=\"$version\",/g" setup.py
27 '';
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 mock
32 pytest-cov
33 coverage
34 ];
35
36 propagatedBuildInputs = [
37 future
38 ujson
39 ];
40
41 meta = with lib; {
42 homepage = "https://github.com/palantir/python-jsonrpc-server";
43 description = "A Python 2 and 3 asynchronous JSON RPC server";
44 license = licenses.mit;
45 maintainers = [ maintainers.mic92 ];
46 };
47}