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;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-/13xx/2G4dvQJZ8GWZdRzpGnx5DykEFHk6Vlq1ht3FI=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = pythonEnv ++ [ pytestCheckHook ];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|