587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
36 lines
803 B
Nix
36 lines
803 B
Nix
{
|
|
lib,
|
|
pythonOlder,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ajsonrpc";
|
|
version = "1.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-eRusGPC/De4QkZRkTxUc+Lf/UpxLjWI5rEgQSjJRoZ8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "ajsonrpc" ];
|
|
|
|
meta = with lib; {
|
|
description = "Async JSON-RPC 2.0 protocol and asyncio server";
|
|
homepage = "https://github.com/pavlov99/ajsonrpc";
|
|
changelog = "https://github.com/pavlov99/ajsonrpc/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ oxzi ];
|
|
mainProgram = "async-json-rpc-server";
|
|
};
|
|
}
|