2021-02-22 21:28:39 +00:00
|
|
|
{ lib, isPy27, buildPythonPackage, fetchPypi, pytestCheckHook, mock }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pythonEnv = lib.optional isPy27 mock;
|
|
|
|
in buildPythonPackage rec {
|
|
|
|
pname = "json-rpc";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.14.0";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-/13xx/2G4dvQJZ8GWZdRzpGnx5DykEFHk6Vlq1ht3FI=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = pythonEnv ++ [ pytestCheckHook ];
|
|
|
|
|
|
|
|
nativeBuildInputs = pythonEnv;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JSON-RPC 1/2 transport implementation";
|
|
|
|
homepage = "https://github.com/pavlov99/json-rpc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ oxzi ];
|
|
|
|
};
|
|
|
|
}
|