blob: 685e8a36e3f98bdd6c5b18a8e6beed96eec6527f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aiomultiprocess";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "omnilib";
repo = "aiomultiprocess";
tag = "v${version}";
hash = "sha256-LWrAr3i2CgOMZFxWi9B3kiou0UtaHdDbpkr6f9pReRA=";
};
patches = [
# https://github.com/omnilib/aiomultiprocess/issues/220
./python314-compat.patch
];
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 = lib.licenses.mit;
maintainers = [ lib.maintainers.fab ];
};
}
|