2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-03-09 03:18:52 +00:00
|
|
|
, flit-core
|
2021-01-05 17:05:55 +00:00
|
|
|
, pytestCheckHook
|
2021-03-09 03:18:52 +00:00
|
|
|
, pythonOlder
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiomultiprocess";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "0.9.0";
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omnilib";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-yOP69FXDb2Grmtszx7oa6uiJGUar8su3KwqQPI+xjrw=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [ "aiomultiprocess/tests/*.py" ];
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
pythonImportsCheck = [ "aiomultiprocess" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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 licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.fab ];
|
|
|
|
};
|
|
|
|
}
|