<commit_before>{ fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook
, pkg-config, boost, expat, scipy, cgal, gmp, mpfr
, gobject-introspection, pygobject3, gtk3, matplotlib, ncurses
, buildPythonPackage
, lib
}:

buildPythonPackage rec {
  pname = "graph-tool";
  format = "other";
  version = "2.43";

  src = fetchurl {
    url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
    hash = "sha256-XxvuCUIgz7JIaNsPr0f44v/Sb3fdcJmVhC5NnomNqGw=";
  };

  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;

  meta = with lib; {
    description = "Python module for manipulation and statistical analysis of graphs";
    homepage    = "https://graph-tool.skewed.de/";
    license     = licenses.gpl3;
    maintainers = [ maintainers.joelmo ];
  };
}<commit_msg>python3Packages.graph-tool: 2.43 -> 2.45<commit_after>{ buildPythonPackage
, lib
, fetchurl

, autoreconfHook
, boost
, cairomm
, cgal
, expat
, gmp
, gobject-introspection
, gtk3
, matplotlib
, mpfr
, numpy
, pkg-config
, pycairo
, pygobject3
, python
, scipy
, sparsehash
}:

buildPythonPackage rec {
  pname = "graph-tool";
  format = "other";
  version = "2.45";

  src = fetchurl {
    url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
    hash = "sha256-+S2nrM/aArKXke/k8LPtkzKfJyMq9NOvwHySQh7Ghmg=";
  };

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

  enableParallelBuilding = true;

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  # https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#manual-compilation
  propagatedBuildInputs = [
    boost
    cairomm
    cgal
    expat
    gmp
    gobject-introspection
    gtk3
    matplotlib
    mpfr
    numpy
    pycairo
    pygobject3
    scipy
    sparsehash
  ];

  meta = with lib; {
    description = "Python module for manipulation and statistical analysis of graphs";
    homepage = "https://graph-tool.skewed.de";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ ];
  };
}
{'fraction_non_alphanumeric': 0.13602391629297458, 'fraction_numerical': 0.01569506726457399, 'mean_word_length': 3.0195195195195197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6983164', 'n_tokens_mistral': 1024, 'n_tokens_neox': 979, 'n_words': 168}