<commit_before>{ stdenv
, buildPythonPackage
, fetchPypi
, pbr
}:

buildPythonPackage rec {
  pname = "linecache2";
  version = "1.0.0";

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

  buildInputs = [ pbr ];
  # circular dependencies for tests
  doCheck = false;

  meta = with stdenv.lib; {
    description = "A backport of linecache to older supported Pythons";
    homepage = "https://github.com/testing-cabal/linecache2";
    license = licenses.psfl;
  };

}
<commit_msg>python2.pkgs.linecache2: don't recompile bytecode<commit_after>{ stdenv
, buildPythonPackage
, fetchPypi
, pbr
, isPy3k
}:

buildPythonPackage (rec {
  pname = "linecache2";
  version = "1.0.0";

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

  buildInputs = [ pbr ];
  # circular dependencies for tests
  doCheck = false;

  meta = with stdenv.lib; {
    description = "A backport of linecache to older supported Pythons";
    homepage = "https://github.com/testing-cabal/linecache2";
    license = licenses.psfl;
  };
# TODO: move into main set, this was to avoid a rebuild
} // stdenv.lib.optionalAttrs (!isPy3k ) {
  # syntax error in tests. Tests are likely Python 3 only.
  dontUsePythonRecompileBytecode = !isPy3k;
})

{'fraction_non_alphanumeric': 0.10872781065088757, 'fraction_numerical': 0.04142011834319527, 'mean_word_length': 3.7473684210526317, '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': '5321276', 'n_tokens_mistral': 537, 'n_tokens_neox': 503, 'n_words': 113}