<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, pytest
, psutil
}:

buildPythonPackage rec {
  pname = "pytest-openfiles";
  version = "0.4.0";

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

  propagatedBuildInputs = [
    pytest
    psutil
  ];

  checkInputs = [
    pytest
  ];

  postConfigure = ''
    # remove on next release
    substituteInPlace setup.cfg \
      --replace "[pytest]" "[tool:pytest]"
  '';

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Pytest plugin for detecting inadvertent open file handles";
    homepage = "https://astropy.org";<commit_msg>python: pytest-openfiles: 0.4.0 -> 0.5.0<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, pytest
, psutil
}:

buildPythonPackage rec {
  pname = "pytest-openfiles";
  version = "0.5.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58";
  };

  propagatedBuildInputs = [
    pytest
    psutil
  ];

  checkInputs = [
    pytest
  ];

  postConfigure = ''
    # remove on next release
    substituteInPlace setup.cfg \
      --replace "[pytest]" "[tool:pytest]"
  '';

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Pytest plugin for detecting inadvertent open file handles";
    homepage = "https://astropy.org";
{'fraction_non_alphanumeric': 0.11893033075299085, 'fraction_numerical': 0.06615059817030261, 'mean_word_length': 3.0979827089337175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6814439', 'n_tokens_mistral': 580, 'n_tokens_neox': 536, 'n_words': 102}