Skip to content

Commit 6d2b6cc

Browse files
committed
python312Packages.mpire: init at 2.10.2
Signed-off-by: Ihar Hrachyshka <[email protected]>
1 parent a4b4bab commit 6d2b6cc

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
wheel,
7+
importlib-resources,
8+
pygments,
9+
tqdm,
10+
flask,
11+
multiprocess,
12+
docutils,
13+
sphinx,
14+
sphinx-autodoc-typehints,
15+
sphinx-rtd-theme,
16+
sphinx-versions,
17+
sphinxcontrib-images,
18+
ipywidgets,
19+
numpy,
20+
rich,
21+
pytestCheckHook,
22+
}:
23+
24+
buildPythonPackage rec {
25+
pname = "mpire";
26+
version = "2.10.2";
27+
pyproject = true;
28+
29+
src = fetchFromGitHub {
30+
owner = "sybrenjansen";
31+
repo = "mpire";
32+
tag = "v${version}";
33+
hash = "sha256-6O+k8gSMCu4zhj7KzbsC5UUCU/TG/g3dYsGVuvcy25E=";
34+
};
35+
36+
build-system = [
37+
setuptools
38+
wheel
39+
];
40+
41+
dependencies = [
42+
importlib-resources
43+
pygments
44+
tqdm
45+
];
46+
47+
optional-dependencies = {
48+
dashboard = [
49+
flask
50+
];
51+
dill = [
52+
multiprocess
53+
];
54+
docs = [
55+
docutils
56+
sphinx
57+
sphinx-autodoc-typehints
58+
sphinx-rtd-theme
59+
sphinx-versions
60+
sphinxcontrib-images
61+
];
62+
testing = [
63+
ipywidgets
64+
multiprocess
65+
numpy
66+
rich
67+
];
68+
};
69+
70+
pythonImportsCheck = [
71+
"mpire"
72+
];
73+
74+
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.testing;
75+
76+
pytestFlagsArray = [ "tests" ];
77+
78+
meta = {
79+
description = "A Python package for easy multiprocessing, but faster than multiprocessing";
80+
homepage = "https://pypi.org/project/mpire/";
81+
license = lib.licenses.mit;
82+
maintainers = with lib.maintainers; [ booxter ];
83+
};
84+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8556,6 +8556,8 @@ self: super: with self; {
85568556

85578557
mpi4py = callPackage ../development/python-modules/mpi4py { };
85588558

8559+
mpire = callPackage ../development/python-modules/mpire { };
8560+
85598561
mpldatacursor = callPackage ../development/python-modules/mpldatacursor { };
85608562

85618563
mplcursors = callPackage ../development/python-modules/mplcursors { };

0 commit comments

Comments
 (0)