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.12";
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 = "https://github.com/count0/graph-tool/archive/release-${version}.tar.gz";
19 sha256 = "12w58djyx6nn00wixqnxnxby9ksabhzdkkvynl8b89parfvfbpwl";
20 };
21
22 configureFlags = [
23 "--with-python-module-path=$(out)/${python.sitePackages}"
24 "--enable-openmp"
25 ];
26
27 buildInputs = [ pkgconfig autoreconfHook ];
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 gobjectIntrospection
42 gtk3
43 pycairo
44 matplotlib
45 pygobject3
46 ];
47
48 enableParallelBuilding = false;
49}