<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, robotframework
, moretools
, pathpy
, six
, zetup
, modeled
, pytest
}:

buildPythonPackage rec {
  version = "0.1rc4";
  pname = "robotframework-tools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0377ikajf6c3zcy3lc0kh4w9zmlqyplk2c2hb0yyc7h3jnfnya96";
  };

  nativeBuildInputs = [
    zetup
  ];

  propagatedBuildInputs = [
    robotframework
    moretools
    pathpy
    six
    modeled
  ];

  checkInputs = [
    pytest
  ];

  checkPhase = ''
    # tests require network
    pytest test --ignore test/remote/test_remote.py
  '';

  meta = with lib; {
    description = "Python Tools for Robot Framework and Test Libraries";
    homepage = "https://bitbucket.org/userzimmermann/robotframework-tools";
    license = licenses.gpl3;
    maintainers = [ maintainers.costrouc ];
  };
}
<commit_msg>python3Packages.robotframework-tools: fix build<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, robotframework
, moretools
, pathpy
, six
, zetup
, modeled
, pytestCheckHook
}:

buildPythonPackage rec {
  version = "0.1rc4";
  pname = "robotframework-tools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0377ikajf6c3zcy3lc0kh4w9zmlqyplk2c2hb0yyc7h3jnfnya96";
  };

  nativeBuildInputs = [ zetup ];

  propagatedBuildInputs = [
    robotframework
    moretools
    pathpy
    six
    modeled
  ];

  postPatch = ''
    # Remove upstream's selfmade approach to collect the dependencies
    # https://github.com/userzimmermann/robotframework-tools/issues/1
    substituteInPlace setup.py --replace \
      "setup_requires=SETUP_REQUIRES + (zfg.SETUP_REQUIRES or [])," ""
  '';

  checkInputs = [ pytestCheckHook ];
  pytestFlagsArray = [ "test" ];
  pythonImportsCheck = [ "robottools" ];

  meta = with lib; {
    description = "Python Tools for Robot Framework and Test Libraries";
    homepage = "https://github.com/userzimmermann/robotframework-tools";
    license = licenses.gpl3Plus;
    maintainers = [ maintainers.costrouc ];
  };
}

{'fraction_non_alphanumeric': 0.10477582846003898, 'fraction_numerical': 0.025341130604288498, 'mean_word_length': 3.4437229437229435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '5324991', 'n_tokens_mistral': 754, 'n_tokens_neox': 730, 'n_words': 136}