linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / graph-tool / 2.x.x.nix
blob50d5f0f966b6228a8f0bb3afca17a1df038840e1
1 { fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook
2 , pkg-config, boost, expat, scipy, cgal, gmp, mpfr
3 , gobject-introspection, pygobject3, gtk3, matplotlib, ncurses
4 , buildPythonPackage
5 , fetchpatch
6 , pythonAtLeast
7 , lib
8 }:
10 buildPythonPackage rec {
11   pname = "graph-tool";
12   format = "other";
13   version = "2.32";
15   src = fetchurl {
16     url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
17     sha256 = "0jir6fhi09lf8xf56dcsdk2knx32vq8wrzh0d0zdp22n7baavq70";
18   };
20   configureFlags = [
21     "--with-python-module-path=$(out)/${python.sitePackages}"
22     "--with-boost-libdir=${boost}/lib"
23     "--with-expat=${expat}"
24     "--with-cgal=${cgal}"
25     "--enable-openmp"
26   ];
28   nativeBuildInputs = [ autoreconfHook pkg-config ];
29   buildInputs = [ ncurses ];
31   propagatedBuildInputs = [
32     boost
33     cgal
34     expat
35     gmp
36     mpfr
37     python
38     scipy
39     # optional
40     sparsehash
41     # drawing
42     cairomm
43     gobject-introspection
44     gtk3
45     pycairo
46     matplotlib
47     pygobject3
48   ];
50   enableParallelBuilding = false;
52   meta = with lib; {
53     description = "Python module for manipulation and statistical analysis of graphs";
54     homepage    = "https://graph-tool.skewed.de/";
55     license     = licenses.gpl3;
56     maintainers = [ maintainers.joelmo ];
57   };