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 = "3.1";
15 disabled = pythonOlder "3.8";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-3jRjNUCPhN4Orab/n6+v/5vNoR8KDfqpMRM967FGq2E=";
20 };
21
22 propagatedBuildInputs = [ decorator setuptools ];
23 nativeCheckInputs = [ 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}