2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pythonOlder,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
}:
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ajsonrpc";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.2.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-eRusGPC/De4QkZRkTxUc+Lf/UpxLjWI5rEgQSjJRoZ8=";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "ajsonrpc" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Async JSON-RPC 2.0 protocol and asyncio server";
|
2021-03-19 17:17:44 +00:00
|
|
|
homepage = "https://github.com/pavlov99/ajsonrpc";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/pavlov99/ajsonrpc/releases/tag/${version}";
|
2021-03-19 17:17:44 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ oxzi ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "async-json-rpc-server";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
}
|