summary refs log blame commit diff
path: root/pkgs/development/python-modules/graph-tool/2.x.x.nix
blob: be1592f864fa7207955dbe2b98ae731b0e720612 (plain) (tree)
1
2
3
4
5
6


                                                                         

                         
                   






                                                                                      
                                                    


                  

                                                                                   

    



                                                             
 
                                             
 

















                           


                                 
{ stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook,
pkgconfig, boost, expat, scipy, numpy, cgal, gmp, mpfr, lndir,
gobjectIntrospection, pygobject3, gtk3, matplotlib }:

stdenv.mkDerivation rec {
  version = "2.12";
  name = "${python.libPrefix}-graph-tool-${version}";

  meta = with stdenv.lib; {
    description = "Python module for manipulation and statistical analysis of graphs";
    homepage    = http://graph-tool.skewed.de/;
    license     = licenses.gpl3;
    platforms   = platforms.all;
    maintainer  = [ stdenv.lib.maintainers.joelmo ];
  };

  src = fetchurl {
    url = "https://github.com/count0/graph-tool/archive/release-${version}.tar.gz";
    sha256 = "12w58djyx6nn00wixqnxnxby9ksabhzdkkvynl8b89parfvfbpwl";
  };

  configureFlags = [
    "--with-python-module-path=$(out)/${python.sitePackages}"
    "--enable-openmp"
  ];

  buildInputs = [ pkgconfig autoreconfHook ];

  propagatedBuildInputs = [
    boost
    cgal
    expat
    gmp
    mpfr
    python
    scipy
    # optional
    sparsehash
    # drawing
    cairomm
    gobjectIntrospection
    gtk3
    pycairo
    matplotlib
    pygobject3
  ];

  enableParallelBuilding = false;
}