<commit_before>{ lib, isPyPy, buildPythonPackage, fetchPypi
, pytest, cmdline, pytest-cov, coverage, setuptools-git, mock, path, execnet
, contextlib2, termcolor }:

buildPythonPackage rec {
  pname = "pytest-shutil";
  version = "1.7.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq";
  };

  buildInputs = [ pytest ];
  checkInputs = [ cmdline pytest ];
  propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock path execnet contextlib2 termcolor ];

  checkPhase = ''
    py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}
  '';

  meta = with lib; {
    description = "A goodie-bag of unix shell and environment tools for py.test";
    homepage = "https://github.com/manahl/pytest-plugins";
    maintainers = with maintainers; [ ryansydnor ];<commit_msg>python3Packages.pytest-shutil: fix build<commit_after>{ lib, isPyPy, buildPythonPackage, fetchPypi
, pytest, cmdline, pytest-cov, coverage, setuptools-git, mock, path, execnet
, contextlib2, termcolor, six }:

buildPythonPackage rec {
  pname = "pytest-shutil";
  version = "1.7.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "path.py" "path"
  '';

  buildInputs = [ pytest ];
  checkInputs = [ cmdline pytest ];
  propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock path execnet contextlib2 termcolor six ];

  checkPhase = ''
    py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}
  '';

  meta = with lib; {
    description = "A goodie-bag of unix shell and environment tools for py.test";
    homepage = "https://github.com/manahl/pytest-plugins";
    maintainers = with maintainers; [ ryansydnor ];
{'fraction_non_alphanumeric': 0.11641630901287553, 'fraction_numerical': 0.02736051502145923, 'mean_word_length': 4.081743869209809, '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': '3312247', 'n_tokens_mistral': 679, 'n_tokens_neox': 670, 'n_words': 150}