<commit_before>{ lib, isPy3k, pythonOlder, fetchPypi, buildPythonPackage
, pytest
, pytestcov
, sybil
, typing-extensions
}:

buildPythonPackage rec {
  pname = "atpublic";
  version = "2.1.1";
  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "fa1d48bcb85bbed90f6ffee6936578f65ff0e93aa607397bd88eaeb408bd96d8";
  };

  propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
    typing-extensions
  ];

  checkInputs = [
    pytest pytestcov sybil
  ];

  checkPhase = ''
    pytest<commit_msg>python3Packages.atpublic: 2.1.1 -> 2.1.3<commit_after>{ lib, isPy3k, pythonOlder, fetchPypi, buildPythonPackage
, pytest
, pytestcov
, sybil
, typing-extensions
}:

buildPythonPackage rec {
  pname = "atpublic";
  version = "2.1.3";
  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "e0b274759bfbcb6eeb7c7b44a7a46391990a43ac77aa55359b075765b54d9f5d";
  };

  propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
    typing-extensions
  ];

  checkInputs = [
    pytest pytestcov sybil
  ];

  checkPhase = ''
    pytest
{'fraction_non_alphanumeric': 0.10999083409715857, 'fraction_numerical': 0.0925756186984418, 'mean_word_length': 3.875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '3133890', 'n_tokens_mistral': 482, 'n_tokens_neox': 438, 'n_words': 73}