Merge pull request #114012 from oxzi/python-json-rpc

pythonPackages.json-rpc: init at 1.13.0
This commit is contained in:
Jörg Thalheim 2021-02-22 19:35:14 +00:00 committed by GitHub
commit 5c1ffb7a9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ lib, isPy27, buildPythonPackage, fetchPypi, pytestCheckHook, mock }:
let
pythonEnv = lib.optional isPy27 mock;
in buildPythonPackage rec {
pname = "json-rpc";
version = "1.13.0";
src = fetchPypi {
inherit pname version;
sha256 = "12bmblnznk174hqg2irggx4hd3cq1nczbwkpsqqzr13hbg7xpw6y";
};
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 ];
};
}

View file

@ -3399,6 +3399,8 @@ in {
jsonref = callPackage ../development/python-modules/jsonref { };
json-rpc = callPackage ../development/python-modules/json-rpc { };
jsonrpc-async = callPackage ../development/python-modules/jsonrpc-async { };
jsonrpc-base = callPackage ../development/python-modules/jsonrpc-base { };