Merge pull request #303058 from fabaff/ajsonrpc-refactor

python312Packages.ajsonrpc: refactor
This commit is contained in:
Fabian Affolter 2024-04-10 23:49:44 +02:00 committed by GitHub
commit def4bb025d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,26 +1,36 @@
{ lib, pythonOlder, buildPythonPackage, fetchPypi, pytestCheckHook }:
{
lib,
pythonOlder,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "ajsonrpc";
version = "1.2.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.5";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "791bac18f0bf0dee109194644f151cf8b7ff529c4b8d6239ac48104a3251a19f";
hash = "sha256-eRusGPC/De4QkZRkTxUc+Lf/UpxLjWI5rEgQSjJRoZ8=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ajsonrpc" ];
meta = with lib; {
description = "Async JSON-RPC 2.0 protocol + asyncio server";
mainProgram = "async-json-rpc-server";
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";
};
}