<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, six
, pythonOlder
, coverage
}:

buildPythonPackage rec {
  pname = "nose2";
  version = "0.10.0";

  # Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5.
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "886ba617a96de0130c54b24479bd5c2d74d5c940d40f3809c3a275511a0c4a60";
  };

  propagatedBuildInputs = [ six coverage ];

  # AttributeError: 'module' object has no attribute 'collector'
  doCheck = false;

  meta = with lib; {
    description = "nose2 is the next generation of nicer testing for Python";
    homepage = "https://github.com/nose-devs/nose2";
    license = licenses.bsd0;
  };

}<commit_msg>python3Packages.nose2: run tests<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, python
, six
, pythonOlder
, coverage
}:

buildPythonPackage rec {
  pname = "nose2";
  version = "0.10.0";

  # Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5.
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "886ba617a96de0130c54b24479bd5c2d74d5c940d40f3809c3a275511a0c4a60";
  };

  propagatedBuildInputs = [ six coverage ];

  checkPhase = ''
    ${python.interpreter} -m unittest
  '';

  meta = with lib; {
    description = "nose2 is the next generation of nicer testing for Python";
    homepage = "https://github.com/nose-devs/nose2";
    license = licenses.bsd0;
  };

}
{'fraction_non_alphanumeric': 0.11586206896551725, 'fraction_numerical': 0.0910344827586207, 'mean_word_length': 3.534375, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3742577', 'n_tokens_mistral': 621, 'n_tokens_neox': 538, 'n_words': 126}