nixpkgs/pkgs/development/python-modules/networkx/default.nix

32 lines
718 B
Nix
Raw Normal View History

2018-01-01 15:11:22 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, nose
2019-10-17 07:53:19 +01:00
, pytest
2018-01-01 15:11:22 +00:00
, decorator
, setuptools
2018-01-01 15:11:22 +00:00
}:
buildPythonPackage rec {
pname = "networkx";
2018-10-24 14:34:13 +01:00
# upgrade may break sage, please test the sage build or ping @timokau on upgrade
2020-11-29 14:04:34 +00:00
version = "2.5";
2018-01-01 15:11:22 +00:00
src = fetchPypi {
inherit pname version;
2020-11-29 14:04:34 +00:00
sha256 = "7978955423fbc9639c10498878be59caf99b44dc304c2286162fd24b458c1602";
2018-01-01 15:11:22 +00:00
};
propagatedBuildInputs = [ decorator setuptools ];
2019-10-17 07:53:19 +01:00
checkInputs = [ nose pytest];
checkPhase = ''
pytest
'';
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
}