Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / json-rpc / default.nix
bloba1037f573dbdf2eab5ceed00397e8ed0879cb393
1 { lib, isPy27, buildPythonPackage, fetchPypi, pytestCheckHook, mock }:
3 let
4   pythonEnv = lib.optional isPy27 mock;
5 in buildPythonPackage rec {
6   pname = "json-rpc";
7   version = "1.15.0";
9   src = fetchPypi {
10     inherit pname version;
11     hash = "sha256-5kQdVsHc1UJByTfQotzRk73wvcU5tTFlJHE/VUt/hbk=";
12   };
14   nativeCheckInputs = pythonEnv ++ [ pytestCheckHook ];
16   nativeBuildInputs = pythonEnv;
18   meta = with lib; {
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 ];
23   };