1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 isPy27,
6 cookiecutter,
7 networkx,
8 pandas,
9 tornado,
10 tqdm,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "mesa";
16 version = "3.2.0";
17 format = "setuptools";
18
19 # According to their docs, this library is for Python 3+.
20 disabled = isPy27;
21
22 src = fetchPypi {
23 pname = "mesa";
24 inherit version;
25 hash = "sha256-k4UjkUGL4qDgOhucQU7svRNZtM3ZqtO6NUxpl4NhQl0=";
26 };
27
28 propagatedBuildInputs = [
29 cookiecutter
30 networkx
31 pandas
32 tornado
33 tqdm
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 disabledTests = [
39 "test_examples"
40 "test_run"
41 "test_scaffold_creates_project_dir"
42 ];
43
44 meta = with lib; {
45 homepage = "https://github.com/projectmesa/mesa";
46 description = "Agent-based modeling (or ABM) framework in Python";
47 license = licenses.asl20;
48 maintainers = [ maintainers.dpaetzel ];
49 broken = true; # missing dependencies
50 };
51}