Files
nixpkgs/pkgs/development/python-modules/aiorpcx/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

47 lines
969 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
websockets,
pytest-asyncio_0,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aiorpcx";
version = "0.25.0";
pyproject = true;
src = fetchFromGitHub {
owner = "kyuupichan";
repo = "aiorpcX";
tag = version;
hash = "sha256-mFg9mWrlnfXiQpgZ1rxvUy9TBfwy41XEKmsCf2nvxGo=";
};
build-system = [ setuptools ];
optional-dependencies.ws = [ websockets ];
nativeCheckInputs = [
pytest-asyncio_0
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
disabledTests = [
# network access
"test_create_connection_resolve_good"
];
pythonImportsCheck = [ "aiorpcx" ];
meta = {
description = "Transport, protocol and framing-independent async RPC client and server implementation";
homepage = "https://github.com/kyuupichan/aiorpcX";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ prusnak ];
};
}