<commit_before>{ buildPythonApplication
, fetchFromGitHub
, lib
, pandoc-xnos
}:

buildPythonApplication rec {
  pname = "pandoc-secnos";
  version = "2.2.2";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "tomduck";
    repo = pname;
    rev = version;
    sha256 = "sha256-J9KLZvioYM3Pl2UXjrEgd4PuLTwCLYy9SsJIzgw5/jU=";
  };

  propagatedBuildInputs = [ pandoc-xnos ];

  patches = [
    ./patch/fix-manifest.patch
  ];

  # Different pandoc executables are not available
  doCheck = false;

  meta = with lib; {
    description = "Standalone pandoc filter from the pandoc-xnos suite for numbering sections and section references";
    homepage = "https://github.com/tomduck/pandoc-secnos";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ ppenguin ];
  };
}
<commit_msg>pandoc-secnos: add setuptools to nativeBuildInputs<commit_after>{ buildPythonApplication
, fetchFromGitHub
, lib
, pandoc-xnos
, setuptools
}:

buildPythonApplication rec {
  pname = "pandoc-secnos";
  version = "2.2.2";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "tomduck";
    repo = pname;
    rev = version;
    sha256 = "sha256-J9KLZvioYM3Pl2UXjrEgd4PuLTwCLYy9SsJIzgw5/jU=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [ pandoc-xnos ];

  patches = [
    ./patch/fix-manifest.patch
  ];

  # Different pandoc executables are not available
  doCheck = false;

  meta = with lib; {
    description = "Standalone pandoc filter from the pandoc-xnos suite for numbering sections and section references";
    homepage = "https://github.com/tomduck/pandoc-secnos";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ ppenguin ];
  };
}

{'fraction_non_alphanumeric': 0.11124053581828772, 'fraction_numerical': 0.018637157833430402, 'mean_word_length': 3.5210526315789474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7577143', 'n_tokens_mistral': 640, 'n_tokens_neox': 610, 'n_words': 127}