nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 31 lines 707 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, nose 5, pytest 6, decorator 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "networkx"; 12 # upgrade may break sage, please test the sage build or ping @timokau on upgrade 13 version = "2.7.1"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-0RlLp1Pl7tB83s0dI8XNejx3IJm9jb0v6jZniM9N57o="; 18 }; 19 20 propagatedBuildInputs = [ decorator setuptools ]; 21 checkInputs = [ nose pytest]; 22 checkPhase = '' 23 pytest 24 ''; 25 26 meta = { 27 homepage = "https://networkx.github.io/"; 28 description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks"; 29 license = lib.licenses.bsd3; 30 }; 31}