1{ fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook 2, pkg-config, boost, expat, scipy, cgal, gmp, mpfr 3, gobject-introspection, pygobject3, gtk3, matplotlib, ncurses 4, buildPythonPackage 5, lib 6}: 7 8buildPythonPackage rec { 9 pname = "graph-tool"; 10 format = "other"; 11 version = "2.32"; 12 13 src = fetchurl { 14 url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2"; 15 sha256 = "0jir6fhi09lf8xf56dcsdk2knx32vq8wrzh0d0zdp22n7baavq70"; 16 }; 17 18 configureFlags = [ 19 "--with-python-module-path=$(out)/${python.sitePackages}" 20 "--with-boost-libdir=${boost}/lib" 21 "--with-expat=${expat}" 22 "--with-cgal=${cgal}" 23 "--enable-openmp" 24 ]; 25 26 nativeBuildInputs = [ autoreconfHook pkg-config ]; 27 buildInputs = [ ncurses ]; 28 29 propagatedBuildInputs = [ 30 boost 31 cgal 32 expat 33 gmp 34 mpfr 35 python 36 scipy 37 # optional 38 sparsehash 39 # drawing 40 cairomm 41 gobject-introspection 42 gtk3 43 pycairo 44 matplotlib 45 pygobject3 46 ]; 47 48 enableParallelBuilding = false; 49 50 meta = with lib; { 51 description = "Python module for manipulation and statistical analysis of graphs"; 52 homepage = "https://graph-tool.skewed.de/"; 53 license = licenses.gpl3; 54 maintainers = [ maintainers.joelmo ]; 55 }; 56}