Merge pull request #303058 from fabaff/ajsonrpc-refactor
python312Packages.ajsonrpc: refactor
This commit is contained in:
commit
def4bb025d
1 changed files with 16 additions and 6 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue