diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-04-10 23:49:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 23:49:44 +0200 |
commit | def4bb025db3c60fe3077b31a76ae83d3c11078d (patch) | |
tree | f3bf48a57e173ce3772371563d8206b0fe43b09f /pkgs/development | |
parent | c15b7df7f7a1e70d7663f93fa2121450058bf037 (diff) | |
parent | 87ce0c4fc76cca22ffd2cd8852ab2959588a132f (diff) |
Merge pull request #303058 from fabaff/ajsonrpc-refactor
python312Packages.ajsonrpc: refactor
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/ajsonrpc/default.nix | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/ajsonrpc/default.nix b/pkgs/development/python-modules/ajsonrpc/default.nix index 47643f6e94b44..66e94c019c595 100644 --- a/pkgs/development/python-modules/ajsonrpc/default.nix +++ b/pkgs/development/python-modules/ajsonrpc/default.nix @@ -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"; }; } |