Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder 2, pytest, mock, pytestcov, coverage 3, future, futures 4}: 5 6buildPythonPackage rec { 7 pname = "python-jsonrpc-server"; 8 version = "0.0.2"; 9 10 src = fetchFromGitHub { 11 owner = "palantir"; 12 repo = "python-jsonrpc-server"; 13 rev = version; 14 sha256 = "1xp6xipslw8d1yv05mjmhql07kz04ibci5psjrv6rapqi6jp4bgk"; 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}