<commit_before>{ lib, buildPythonPackage, fetchPypi, pygments, dominate, beautifulsoup4, docutils, sphinx }:

buildPythonPackage rec {
  pname = "alectryon";
  owner = "cpitclaudel";
  version = "1.3.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256:0mca25jv917myb4n91ccpl5fz058aiqsn8cniflwfw5pp6lqnfg7";
  };

  propagatedBuildInputs = [
    pygments<commit_msg>python3Packages.alectryon: patch to fix permission issues (#134529)<commit_after>{ lib, buildPythonPackage, fetchPypi, fetchpatch
, pygments, dominate, beautifulsoup4, docutils, sphinx }:

buildPythonPackage rec {
  pname = "alectryon";
  owner = "cpitclaudel";
  version = "1.3.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256:0mca25jv917myb4n91ccpl5fz058aiqsn8cniflwfw5pp6lqnfg7";
  };

  patches = [
    (fetchpatch {
      url = "https://github.com/cpitclaudel/alectryon/commit/c779def3fa268e703d4e0ff8ae0b2981e194b269.patch";
      sha256 = "0xsz56ibq8xj7gg530pfm1jmxbxw4r6v8xvzj5k1wdry83srqi65";
     })
   ];

  propagatedBuildInputs = [
    pygments
{'fraction_non_alphanumeric': 0.10402999062792877, 'fraction_numerical': 0.09934395501405811, 'mean_word_length': 4.680851063829787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2491057', 'n_tokens_mistral': 501, 'n_tokens_neox': 436, 'n_words': 64}