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