Files
nixpkgs/pkgs/development/python-modules/jsonrpc-async/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
957 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
jsonrpc-base,
pytest-aiohttp,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonrpc-async";
version = "2.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "emlove";
repo = "jsonrpc-async";
rev = version;
hash = "sha256-KOnycsOZFDEVj8CJDwGbdtbOpMPQMVdrXbHG0fzr9PI=";
};
patches = [
# https://github.com/emlove/jsonrpc-async/pull/11
./mark-tests-async.patch
];
build-system = [ setuptools ];
dependencies = [
aiohttp
jsonrpc-base
];
nativeCheckInputs = [
pytest-aiohttp
pytestCheckHook
];
enabledTestPaths = [ "tests.py" ];
pythonImportsCheck = [ "jsonrpc_async" ];
meta = {
description = "JSON-RPC client library for asyncio";
homepage = "https://github.com/emlove/jsonrpc-async";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ peterhoeg ];
};
}