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.6.3";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "c0946ed31d71f1b732b5aaa6da5a0388a345019af232ce2f49c766e2d6795c51";
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}