1{ stdenv, fetchurl, python, cairomm, sparsehash, pycairo, automake, m4, 2pkgconfig, boost, expat, scipy, numpy, cgal, gmp, mpfr, lndir, makeWrapper, 3gobjectIntrospection, pygobject3, gtk3, matplotlib }: 4 5stdenv.mkDerivation rec { 6 version = "2.2.42"; 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 maintainer = [ stdenv.lib.maintainers.joelmo ]; 15 }; 16 17 src = fetchurl { 18 url = "http://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2"; 19 sha256 = "124qmd0mgam7hm87gscp3836ymhhwwnlfm2c5pzpml06da1w0xg9"; 20 }; 21 22 preConfigure = '' 23 configureFlags="--with-python-module-path=$out/${python.sitePackages} --enable-openmp" 24 ''; 25 26 buildInputs = [ automake m4 pkgconfig makeWrapper ]; 27 28 propagatedBuildInputs = [ 29 boost 30 cgal 31 expat 32 gmp 33 mpfr 34 python 35 scipy 36 # optional 37 sparsehash 38 # drawing 39 cairomm 40 gobjectIntrospection 41 gtk3 42 pycairo 43 matplotlib 44 pygobject3 45 ]; 46 47 enableParallelBuilding = false; 48}