@@ -0,0 +1,34 @@
1+{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
2+, pytest, mock, pytestcov, coverage
3+, future, futures
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "python-jsonrpc-server";
8+ version = "0.0.1";
9+
10+ src = fetchFromGitHub {
11+ owner = "palantir";
12+ repo = "python-jsonrpc-server";
13+ rev = version;
14+ sha256 = "0p5dj1hxx3yz8vjk59dcp3h6ci1hrjkbzf9lr3vviy0xw327409k";
15+ };
16+
17+ checkInputs = [
18+ pytest mock pytestcov coverage
19+ ];
20+
21+ checkPhase = ''
22+ pytest
23+ '';
24+
25+ propagatedBuildInputs = [ future ]
26+ ++ stdenv.lib.optional (pythonOlder "3.2") futures;
27+
28+ meta = with stdenv.lib; {
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 ];
33+ };
34+}