<commit_before>{ stdenv, buildPythonPackage, fetchFromGitHub
, pandoc, haskellPackages, texlive }:

buildPythonPackage rec {
  pname = "pypandoc";
  version = "unstable-2018-06-18";

  src = fetchFromGitHub {
    owner = "bebraw";
    repo = pname;
    rev = "87912f0f17e0a71c1160008df708c876d32e5819";
    sha256 = "0l6knkxxhmni4lx8hyvbb71svnhza08ivyklqlk5fw637gznc0hx";
  };

  postPatch = ''
    # set pandoc path statically
    sed -i '/^__pandoc_path = None$/c__pandoc_path = "${pandoc}/bin/pandoc"' pypandoc/__init__.py

    # Fix tests: requires network access
    substituteInPlace tests.py --replace "pypandoc.convert(url, 'html')" "'GPL2 license'"
  '';

  preCheck = ''
    export PATH="${haskellPackages.pandoc-citeproc}/bin:${texlive.combined.scheme-small}/bin:$PATH"
  '';

  meta = with stdenv.lib; {
    description = "Thin wrapper for pandoc";
    homepage = https://github.com/bebraw/pypandoc;
    license = licenses.mit;
    maintainers = with maintainers; [ bennofs ];
  };
}<commit_msg>pythonPackages.pypandoc: add sternenseemann to maintainers<commit_after>{ stdenv, buildPythonPackage, fetchFromGitHub
, pandoc, haskellPackages, texlive }:

buildPythonPackage rec {
  pname = "pypandoc";
  version = "unstable-2018-06-18";

  src = fetchFromGitHub {
    owner = "bebraw";
    repo = pname;
    rev = "87912f0f17e0a71c1160008df708c876d32e5819";
    sha256 = "0l6knkxxhmni4lx8hyvbb71svnhza08ivyklqlk5fw637gznc0hx";
  };

  postPatch = ''
    # set pandoc path statically
    sed -i '/^__pandoc_path = None$/c__pandoc_path = "${pandoc}/bin/pandoc"' pypandoc/__init__.py

    # Fix tests: requires network access
    substituteInPlace tests.py --replace "pypandoc.convert(url, 'html')" "'GPL2 license'"
  '';

  preCheck = ''
    export PATH="${haskellPackages.pandoc-citeproc}/bin:${texlive.combined.scheme-small}/bin:$PATH"
  '';

  meta = with stdenv.lib; {
    description = "Thin wrapper for pandoc";
    homepage = https://github.com/bebraw/pypandoc;
    license = licenses.mit;
    maintainers = with maintainers; [ <NAME> ];
  };
}
{'fraction_non_alphanumeric': 0.13313896987366375, 'fraction_numerical': 0.05344995140913508, 'mean_word_length': 4.021951219512195, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5102536', 'n_tokens_mistral': 857, 'n_tokens_neox': 772, 'n_words': 134}