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

55 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aiomultiprocess";
version = "0.9.1";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "omnilib";
repo = "aiomultiprocess";
tag = "v${version}";
hash = "sha256-LWrAr3i2CgOMZFxWi9B3kiou0UtaHdDbpkr6f9pReRA=";
};
build-system = [ flit-core ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "aiomultiprocess/tests/*.py" ];
disabledTests = [
# tests are flaky and make the whole test suite time out
"test_pool_worker_exceptions"
"test_pool_worker_max_tasks"
"test_pool_worker_stop"
# error message changed with python 3.12
"test_spawn_method"
];
pythonImportsCheck = [ "aiomultiprocess" ];
meta = {
description = "Python module to improve performance";
longDescription = ''
aiomultiprocess presents a simple interface, while running a full
AsyncIO event loop on each child process, enabling levels of
concurrency never before seen in a Python application. Each child
process can execute multiple coroutines at once, limited only by
the workload and number of cores available.
'';
homepage = "https://github.com/omnilib/aiomultiprocess";
license = with lib.licenses; [ mit ];
maintainers = [ lib.maintainers.fab ];
};
}