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