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

32 lines
706 B
Nix
Raw Normal View History

2018-01-01 07:11:22 -08:00
{ lib
, buildPythonPackage
, fetchPypi
, nose
2019-10-16 23:53:19 -07:00
, pytest
2018-01-01 07:11:22 -08:00
, decorator
, setuptools
2018-01-01 07:11:22 -08:00
}:
buildPythonPackage rec {
pname = "networkx";
2018-10-24 06:34:13 -07:00
# upgrade may break sage, please test the sage build or ping @timokau on upgrade
2019-10-16 23:53:19 -07:00
version = "2.4";
2018-01-01 07:11:22 -08:00
src = fetchPypi {
inherit pname version;
2019-10-16 23:53:19 -07:00
sha256 = "0r2wr7aqay9fwjrgk35fkjzk8lvvb4i4df7ndaqzkr4ndw5zzx7q";
2018-01-01 07:11:22 -08:00
};
propagatedBuildInputs = [ decorator setuptools ];
2019-10-16 23:53:19 -07:00
checkInputs = [ nose pytest];
checkPhase = ''
pytest
'';
2018-01-01 07:11:22 -08: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 10:48:32 -08:00
}