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