1{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2, cookiecutter, networkx , pandas, tornado, tqdm
3, pytest }:
4
5buildPythonPackage rec {
6 pname = "mesa";
7 version = "0.8.7";
8
9 # According to their docs, this library is for Python 3+.
10 disabled = isPy27;
11
12 src = fetchFromGitHub {
13 owner = "projectmesa";
14 repo = "mesa";
15 rev = "v${version}";
16 sha256 = "0i1bpdqjrx4avgrzyqxpwxx86j11yhrq1j4kca854xahvhmwis19";
17 };
18
19 checkInputs = [ pytest ];
20
21 # Ignore test which tries to mkdir in unreachable location.
22 checkPhase = ''
23 pytest tests -k "not scaffold"
24 '';
25
26 propagatedBuildInputs = [ cookiecutter networkx pandas tornado tqdm ];
27
28 meta = with lib; {
29 homepage = "https://github.com/projectmesa/mesa";
30 description = "An agent-based modeling (or ABM) framework in Python";
31 license = licenses.asl20;
32 maintainers = [ maintainers.dpaetzel ];
33 };
34}