Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 989 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27 2, cookiecutter, networkx , pandas, tornado, tqdm 3, pytest }: 4 5buildPythonPackage rec { 6 pname = "mesa"; 7 # contains several fixes for networkx 2.4 bump 8 version = "unstable-2019-12-09"; 9 10 # According to their docs, this library is for Python 3+. 11 disabled = isPy27; 12 13 src = fetchFromGitHub { 14 owner = "projectmesa"; 15 repo = "mesa"; 16 rev = "86b343b42630e94d939029ff2cc609ff04ed40e9"; 17 sha256 = "1y41s1vd89vcsm4aia18ayfff4w2af98lwn5l9fcwp157li985vw"; 18 }; 19 20 checkInputs = [ pytest ]; 21 22 # Ignore test which tries to mkdir in unreachable location. 23 checkPhase = '' 24 pytest tests -k "not scaffold" 25 ''; 26 27 propagatedBuildInputs = [ cookiecutter networkx pandas tornado tqdm ]; 28 29 meta = with stdenv.lib; { 30 homepage = "https://github.com/projectmesa/mesa"; 31 description = "An agent-based modeling (or ABM) framework in Python"; 32 license = licenses.asl20; 33 maintainers = [ maintainers.dpaetzel ]; 34 }; 35}