<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "twitter";
  version = "1.19.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-g7jSSEpsdEihGuHG9MJTNVFe6NyB272vEsvAocRo72U=";
  };

  nativeBuildInputs = [ setuptools-scm ];
  doCheck = false;

  meta = with lib; {
    description = "Twitter API library";
    license     = licenses.mit;
    maintainers = with maintainers; [ thoughtpolice ];
  };

}<commit_msg>python310Packages.twitter: add pythonImportsCheck<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pythonOlder
}:

buildPythonPackage rec {
  pname = "twitter";
  version = "1.19.4";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-g7jSSEpsdEihGuHG9MJTNVFe6NyB272vEsvAocRo72U=";
  };

  nativeBuildInputs = [
    setuptools-scm
  ];

  doCheck = false;

  pythonImportsCheck = [
    "twitter"
  ];

  meta = with lib; {
    description = "Twitter API library";
    homepage = "https://mike.verdone.ca/twitter/";
    license = licenses.mit;
    maintainers = with maintainers; [ thoughtpolice ];
  };
}
{'fraction_non_alphanumeric': 0.11976549413735343, 'fraction_numerical': 0.031825795644891124, 'mean_word_length': 3.492481203007519, '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': '2554143', 'n_tokens_mistral': 473, 'n_tokens_neox': 434, 'n_words': 82}