fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
33 lines
653 B
Nix
33 lines
653 B
Nix
{
|
|
lib,
|
|
isPy27,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
mock,
|
|
}:
|
|
|
|
let
|
|
pythonEnv = lib.optional isPy27 mock;
|
|
in
|
|
buildPythonPackage rec {
|
|
pname = "json-rpc";
|
|
version = "1.15.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-5kQdVsHc1UJByTfQotzRk73wvcU5tTFlJHE/VUt/hbk=";
|
|
};
|
|
|
|
nativeCheckInputs = 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 ];
|
|
};
|
|
}
|