2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
2022-06-26 10:26:21 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, decorator
|
|
|
|
, setuptools
|
2022-06-26 10:26:21 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "networkx";
|
|
|
|
# upgrade may break sage, please test the sage build or ping @timokau on upgrade
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "3.0";
|
2022-06-26 10:26:21 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-mpmSNFNTYYrpgznCtj2CAcOBwpRPOKKrSctFpMZn5BI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ decorator setuptools ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ nose pytestCheckHook ];
|
2020-04-24 23:36:52 +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;
|
|
|
|
};
|
|
|
|
}
|