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