2020-04-24 23:36:52 +00:00
|
|
|
{ fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook
|
|
|
|
, pkg-config, boost, expat, scipy, cgal, gmp, mpfr
|
|
|
|
, gobject-introspection, pygobject3, gtk3, matplotlib, ncurses
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchpatch
|
|
|
|
, pythonAtLeast
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graph-tool";
|
|
|
|
format = "other";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.32";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "0jir6fhi09lf8xf56dcsdk2knx32vq8wrzh0d0zdp22n7baavq70";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-python-module-path=$(out)/${python.sitePackages}"
|
|
|
|
"--with-boost-libdir=${boost}/lib"
|
|
|
|
"--with-expat=${expat}"
|
|
|
|
"--with-cgal=${cgal}"
|
|
|
|
"--enable-openmp"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boost
|
|
|
|
cgal
|
|
|
|
expat
|
|
|
|
gmp
|
|
|
|
mpfr
|
|
|
|
python
|
|
|
|
scipy
|
|
|
|
# optional
|
|
|
|
sparsehash
|
|
|
|
# drawing
|
|
|
|
cairomm
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
pycairo
|
|
|
|
matplotlib
|
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for manipulation and statistical analysis of graphs";
|
|
|
|
homepage = "https://graph-tool.skewed.de/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.joelmo ];
|
|
|
|
};
|
|
|
|
}
|