<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, python-dateutil
}:

buildPythonPackage rec {
  pname = "ghp-import";
  version = "2.1.0";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-nFNcTGEZPC34hxIiVn1/1+UBTYNfl9x7dDkGniQT00M=";
  };

  propagatedBuildInputs = [ python-dateutil ];

  # Does not include any unit tests
  doCheck = false;

  pythonImportsCheck = [ "ghp_import" ];

  meta = with lib; {
    description = "Copy your docs directly to the gh-pages branch";
    homepage = "https://github.com/c-w/ghp-import";
    license = licenses.asl20;
    maintainers = with maintainers; [ veehaitch ];
  };
}
<commit_msg>python310Packages.ghp-import: disable on older Python releases<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, python-dateutil
, pythonOlder
}:

buildPythonPackage rec {
  pname = "ghp-import";
  version = "2.1.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-nFNcTGEZPC34hxIiVn1/1+UBTYNfl9x7dDkGniQT00M=";
  };

  propagatedBuildInputs = [
    python-dateutil
  ];

  # Does not include any unit tests
  doCheck = false;

  pythonImportsCheck = [
    "ghp_import"
  ];

  meta = with lib; {
    description = "Copy your docs directly to the gh-pages branch";
    homepage = "https://github.com/c-w/ghp-import";
    license = licenses.asl20;
    maintainers = with maintainers; [ veehaitch ];
  };
}

{'fraction_non_alphanumeric': 0.1202223766504517, 'fraction_numerical': 0.02571230020847811, 'mean_word_length': 3.4307692307692306, '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': '1457861', 'n_tokens_mistral': 560, 'n_tokens_neox': 524, 'n_words': 111}