nixpkgs-suyu/pkgs/development/python-modules/graph-tool/2.x.x.nix

56 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook,
pkgconfig, boost, expat, scipy, numpy, cgal, gmp, mpfr, lndir,
gobjectIntrospection, pygobject3, gtk3, matplotlib, ncurses,
buildPythonPackage }:
2015-01-29 14:24:37 +01:00
buildPythonPackage rec {
format = "other";
version = "2.26";
2015-01-29 14:24:37 +01:00
name = "${python.libPrefix}-graph-tool-${version}";
meta = with stdenv.lib; {
description = "Python module for manipulation and statistical analysis of graphs";
homepage = https://graph-tool.skewed.de/;
2015-01-29 14:24:37 +01:00
license = licenses.gpl3;
platforms = platforms.all;
maintainers = [ stdenv.lib.maintainers.joelmo ];
2015-01-29 14:24:37 +01:00
};
src = fetchurl {
url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
sha256 = "0w7pd2h8ayr88kjl82c8fdshnk6f3xslc77gy7ma09zkbvf76qnz";
2015-01-29 14:24:37 +01:00
};
configureFlags = [
"--with-python-module-path=$(out)/${python.sitePackages}"
"--with-boost-libdir=${boost}/lib"
"--with-expat=${expat}"
"--with-cgal=${cgal}"
"--enable-openmp"
];
2015-01-29 14:24:37 +01:00
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ ncurses ];
2015-01-29 14:24:37 +01:00
propagatedBuildInputs = [
boost
cgal
expat
gmp
mpfr
python
scipy
# optional
sparsehash
# drawing
cairomm
gobjectIntrospection
gtk3
pycairo
matplotlib
pygobject3
];
2015-01-29 14:24:37 +01:00
enableParallelBuilding = false;
}