nixpkgs/pkgs/development/python-modules/graph-tool/2.x.x.nix
Michel Weitbrecht d38c4638ee python3.pkgs.graph-tool: 2.27 -> 2.29
The dependency 'pkg-config' was renamed and the two patches have since been
included or resolved.
2020-01-04 14:54:38 +01:00

59 lines
1.3 KiB
Nix

{ stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook
, pkg-config, boost, expat, scipy, cgal, gmp, mpfr
, gobject-introspection, pygobject3, gtk3, matplotlib, ncurses
, buildPythonPackage
, fetchpatch
, pythonAtLeast
, lib
}:
buildPythonPackage rec {
pname = "graph-tool";
format = "other";
version = "2.29";
meta = with stdenv.lib; {
description = "Python module for manipulation and statistical analysis of graphs";
homepage = https://graph-tool.skewed.de/;
license = licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.joelmo ];
};
src = fetchurl {
url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
sha256 = "0ykzcnqc5bhqb4xlf9ahpp807vj5868xdrmcj6fggqnnpqv4633c";
};
configureFlags = [
"--with-python-module-path=$(out)/${python.sitePackages}"
"--with-boost-libdir=${boost}/lib"
"--with-expat=${expat}"
"--with-cgal=${cgal}"
"--enable-openmp"
];
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ ncurses ];
propagatedBuildInputs = [
boost
cgal
expat
gmp
mpfr
python
scipy
# optional
sparsehash
# drawing
cairomm
gobject-introspection
gtk3
pycairo
matplotlib
pygobject3
];
enableParallelBuilding = false;
}