2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
isPy27,
|
|
|
|
cookiecutter,
|
|
|
|
networkx,
|
|
|
|
pandas,
|
|
|
|
tornado,
|
|
|
|
tqdm,
|
|
|
|
pytestCheckHook,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mesa";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.2.4";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# According to their docs, this library is for Python 3+.
|
|
|
|
disabled = isPy27;
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
src = fetchPypi {
|
2024-05-15 15:35:15 +00:00
|
|
|
pname = "mesa";
|
2023-01-20 10:41:00 +00:00
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-5og3ACS2r36BEGWfqtw6WG6yJwNF5p3M9K25sSmHosM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cookiecutter
|
|
|
|
networkx
|
|
|
|
pandas
|
|
|
|
tornado
|
|
|
|
tqdm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_examples"
|
|
|
|
"test_run"
|
|
|
|
"test_scaffold_creates_project_dir"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/projectmesa/mesa";
|
|
|
|
description = "An agent-based modeling (or ABM) framework in Python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.dpaetzel ];
|
2024-05-15 15:35:15 +00:00
|
|
|
broken = true; # missing dependencies
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|