2018-01-01 15:11:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, decorator
|
2018-02-26 21:53:18 +00:00
|
|
|
, isPy36
|
|
|
|
, isPyPy
|
2018-01-01 15:11:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "networkx";
|
2018-02-26 21:53:18 +00:00
|
|
|
version = "1.11";
|
|
|
|
|
|
|
|
# Currently broken on PyPy.
|
|
|
|
# https://github.com/networkx/networkx/pull/1361
|
|
|
|
disabled = isPyPy;
|
2018-01-01 15:11:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-26 21:53:18 +00:00
|
|
|
sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
|
2018-01-01 15:11:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
propagatedBuildInputs = [ decorator ];
|
|
|
|
|
2018-02-26 21:53:18 +00:00
|
|
|
# 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
|
|
|
|
doCheck = !(isPy36);
|
|
|
|
|
2018-01-01 15:11:22 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://networkx.github.io/";
|
|
|
|
description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2018-02-26 21:53:18 +00:00
|
|
|
}
|