<commit_before>{ lib, python3Packages }:

python3Packages.buildPythonPackage rec {
  pname = "s3bro";
  version = "2.8";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "0k25g3vch0q772f29jlghda5mjvps55h5lgwhwwbd5g2nlnrrspq";
  };

  propagatedBuildInputs = with python3Packages; [ boto3 botocore click termcolor ];

  # No tests
  doCheck = false;

  meta = with lib; {
    description = "A handy s3 cli tool";
    homepage = "https://github.com/rsavordelli/s3bro";
    license = licenses.mit;
    maintainers = with maintainers; [ psyanticy ];
  };
}<commit_msg>s3bro: remove use_2to3<commit_after>{ lib
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "s3bro";
  version = "2.8";
  format = "setuptools";

  src = python3.pkgs.fetchPypi {
    inherit pname version;
    hash = "sha256-+OqcLbXilbY4h/zRAkvRd8taVIOPyiScOAcDyPZ4RUw=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    boto3
    botocore
    click
    termcolor
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "use_2to3=True," ""
  '';

  # No tests
  doCheck = false;

  pythonImportsCheck = [
    "s3bro"
  ];

  meta = with lib; {
    description = "s3 CLI tool";
    homepage = "https://github.com/rsavordelli/s3bro";
    license = licenses.mit;
    maintainers = with maintainers; [ psyanticy ];
  };
}
{'fraction_non_alphanumeric': 0.12008895478131949, 'fraction_numerical': 0.03780578206078577, 'mean_word_length': 3.2586750788643535, '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': '1864672', 'n_tokens_mistral': 540, 'n_tokens_neox': 513, 'n_words': 97}