1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, pytest
6, decorator
7, setuptools
8}:
9
10buildPythonPackage rec {
11 pname = "networkx";
12 # upgrade may break sage, please test the sage build or ping @timokau on upgrade
13 version = "2.4";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "0r2wr7aqay9fwjrgk35fkjzk8lvvb4i4df7ndaqzkr4ndw5zzx7q";
18 };
19
20 propagatedBuildInputs = [ decorator setuptools ];
21 checkInputs = [ nose pytest];
22 checkPhase = ''
23 pytest
24 '';
25
26 meta = {
27 homepage = "https://networkx.github.io/";
28 description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
29 license = lib.licenses.bsd3;
30 };
31}