1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, decorator
6, isPy36
7, isPyPy
8}:
9
10buildPythonPackage rec {
11 pname = "networkx";
12 version = "1.11";
13
14 # Currently broken on PyPy.
15 # https://github.com/networkx/networkx/pull/1361
16 disabled = isPyPy;
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
21 };
22
23 checkInputs = [ nose ];
24 propagatedBuildInputs = [ decorator ];
25
26 # 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
27 doCheck = !(isPy36);
28
29 meta = {
30 homepage = "https://networkx.github.io/";
31 description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
32 license = lib.licenses.bsd3;
33 };
34}