depot/third_party/nixpkgs/pkgs/development/python-modules/ajsonrpc/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

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";
};
}