<commit_before>{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:

buildPythonPackage rec {
  pname = "python-utils";
  version = "2.3.0";
  name = pname + "-" + version;

  src = fetchFromGitHub {
    owner = "WoLpH";
    repo = "python-utils";
    rev = "v${version}";
    sha256 = "14gyphcqwa77wfbnrzj363v3fdkxy08378lgd7l3jqnpvr8pfp5c";
  };

  checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];

  postPatch = ''
    # pytest-runner is only actually required in checkPhase
    substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
  '';

  # Tests failing
  doCheck = false;

  checkPhase = ''
    py.test
  '';

  propagatedBuildInputs = [ six ];

  meta = with lib; {
    description = "Module with some convenient utilities";
    homepage = "https://github.com/WoLpH/python-utils";
    license = licenses.bsd3;
  };
}<commit_msg>python.pkgs.python-utils: use fetchPypi<commit_after>{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:

buildPythonPackage rec {
  pname = "python-utils";
  version = "2.3.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
  };

  checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];

  postPatch = ''
    # pytest-runner is only actually required in checkPhase
    substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
  '';

  # Tests failing
  doCheck = false;

  checkPhase = ''
    py.test
  '';

  propagatedBuildInputs = [ six ];

  meta = with lib; {
    description = "Module with some convenient utilities";
    homepage = "https://github.com/WoLpH/python-utils";
    license = licenses.bsd3;
  };
}
{'fraction_non_alphanumeric': 0.12176724137931035, 'fraction_numerical': 0.03987068965517242, 'mean_word_length': 3.798449612403101, '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': '6033844', 'n_tokens_mistral': 709, 'n_tokens_neox': 672, 'n_words': 136}