83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
24 lines
615 B
Nix
24 lines
615 B
Nix
{ lib, isPy27, buildPythonPackage, fetchPypi, pytestCheckHook, mock }:
|
|
|
|
let
|
|
pythonEnv = lib.optional isPy27 mock;
|
|
in buildPythonPackage rec {
|
|
pname = "json-rpc";
|
|
version = "1.14.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-/13xx/2G4dvQJZ8GWZdRzpGnx5DykEFHk6Vlq1ht3FI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|