2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
isPy27,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
mock,
|
|
|
|
}:
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pythonEnv = lib.optional isPy27 mock;
|
2024-06-05 15:53:02 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage rec {
|
2021-02-22 21:28:39 +00:00
|
|
|
pname = "json-rpc";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.15.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-5kQdVsHc1UJByTfQotzRk73wvcU5tTFlJHE/VUt/hbk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|