Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.mesa: init at 0.8.6 #71244

Merged
merged 2 commits into from
Oct 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/mesa/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, cookiecutter, networkx , pandas, tornado, tqdm
, pytest }:

buildPythonPackage rec {
pname = "mesa";
version = "0.8.6";

# According to their docs, this library is for Python 3+.
disabled = isPy27;

src = fetchFromGitHub {
owner = "projectmesa";
repo = "mesa";
rev = "v${version}";
sha256 = "0d8c636zhswxd91ldlmdxxlyym2fj3bk1iqmpc1jp3hg7vvc7w03";
};

checkInputs = [ pytest ];
dpaetzel marked this conversation as resolved.
Show resolved Hide resolved

# Ignore test which tries to mkdir in unreachable location.
checkPhase = ''
dpaetzel marked this conversation as resolved.
Show resolved Hide resolved
dpaetzel marked this conversation as resolved.
Show resolved Hide resolved
pytest tests -k "not scaffold"
'';

propagatedBuildInputs = [ cookiecutter networkx pandas tornado tqdm ];

dpaetzel marked this conversation as resolved.
Show resolved Hide resolved
meta = with stdenv.lib; {
homepage = "https://github.com/projectmesa/mesa";
description = "An agent-based modeling (or ABM) framework in Python";
license = licenses.asl20;
maintainers = [ maintainers.dpaetzel ];
};
}
6 changes: 5 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,9 @@ in {

pyschedule = callPackage ../development/python-modules/pyschedule { };

pyside = callPackage ../development/python-modules/pyside { };
pyside = callPackage ../development/python-modules/pyside {
inherit (pkgs) mesa;
};

pysideShiboken = callPackage ../development/python-modules/pyside/shiboken.nix {
inherit (pkgs) libxml2 libxslt; # Do not need the Python bindings.
Expand Down Expand Up @@ -3796,6 +3798,8 @@ in {

memory_profiler = callPackage ../development/python-modules/memory_profiler { };

mesa = callPackage ../development/python-modules/mesa { };

metaphone = callPackage ../development/python-modules/metaphone { };

mezzanine = callPackage ../development/python-modules/mezzanine { };
Expand Down