567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
651 B
Nix
34 lines
651 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 = {
|
|
description = "JSON-RPC 1/2 transport implementation";
|
|
homepage = "https://github.com/pavlov99/json-rpc";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ oxzi ];
|
|
};
|
|
}
|