2018-01-01 15:11:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
2022-06-02 15:05:58 +00:00
|
|
|
, pytestCheckHook
|
2018-01-01 15:11:22 +00:00
|
|
|
, decorator
|
2019-09-14 01:20:17 +00:00
|
|
|
, setuptools
|
2022-06-02 15:05:58 +00:00
|
|
|
, pythonOlder
|
2018-01-01 15:11:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "networkx";
|
2018-10-24 13:34:13 +00:00
|
|
|
# upgrade may break sage, please test the sage build or ping @timokau on upgrade
|
2023-02-27 01:14:32 +00:00
|
|
|
version = "3.0";
|
2022-06-02 15:05:58 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2018-01-01 15:11:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-mpmSNFNTYYrpgznCtj2CAcOBwpRPOKKrSctFpMZn5BI=";
|
2018-01-01 15:11:22 +00:00
|
|
|
};
|
|
|
|
|
2019-09-14 01:20:17 +00:00
|
|
|
propagatedBuildInputs = [ decorator setuptools ];
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ nose pytestCheckHook ];
|
2018-01-01 15:11:22 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://networkx.github.io/";
|
|
|
|
description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2018-02-19 18:48:32 +00:00
|
|
|
}
|