1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchPypi,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "para";
12 version = "0.0.8";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-RsMjKunY6p2IbP0IzdESiSICvthkX0C2JVWXukz+8hc=";
18 };
19
20 build-system = [ setuptools ];
21
22 nativeCheckInputs = [ pytestCheckHook ];
23
24 pythonImportsCheck = [ "para" ];
25
26 # AttributeError: Can't get local object 'test_output_queue_size.<locals>.get_the_a'
27 doCheck = !stdenv.hostPlatform.isDarwin;
28
29 meta = {
30 description = "Set utilities that ake advantage of python's 'multiprocessing' module to distribute CPU-intensive tasks";
31 homepage = "https://pypi.org/project/para";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ GaetanLepage ];
34 };
35}