mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
32 lines
720 B
Nix
32 lines
720 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, pytest
|
|
, decorator
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "networkx";
|
|
# upgrade may break sage, please test the sage build or ping @timokau on upgrade
|
|
version = "2.6.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c0946ed31d71f1b732b5aaa6da5a0388a345019af232ce2f49c766e2d6795c51";
|
|
};
|
|
|
|
propagatedBuildInputs = [ decorator setuptools ];
|
|
checkInputs = [ nose pytest];
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|