<commit_before>{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder

# propagates
, allpairspy
, beautifulsoup4
, empty-files
, pyperclip
, pytest

# tests
, numpy
, pytestCheckHook
}:

buildPythonPackage rec {
  version = "5.0.1";
  pname = "approvaltests";
  format = "setuptools";

  disabled = pythonOlder "3.6.1";

  # no tests included in PyPI tarball
  src = fetchFromGitHub {
    owner = "approvals";
    repo = "ApprovalTests.Python";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-lmH/nw/7woLCDepR/rDQUqwrhuLFY+TO8sdgK1+apgc=";
  };

  propagatedBuildInputs = [
    allpairspy
    beautifulsoup4
    empty-files
    pyperclip
    pytest
  ];

  checkInputs = [
    numpy
    pytestCheckHook
  ];

  disabledTests = [
    # tests expects paths below ApprovalTests.Python directory
    "test_received_filename"
    "test_pytest_namer"
  ];

  pythonImportsCheck = [
    "approvaltests.approvals"
    "approvaltests.reporters.generic_diff_reporter_factory"
  ];

  meta = with lib; {
    description = "Assertion/verification library to aid testing";
    homepage = "https://github.com/approvals/ApprovalTests.Python";
    license = licenses.asl20;
    maintainers = [ maintainers.marsam ];
  };
}
<commit_msg>python310Packages.approvaltests: 5.0.1 -> 5.0.2<commit_after>{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder

# propagates
, allpairspy
, beautifulsoup4
, empty-files
, pyperclip
, pytest

# tests
, numpy
, pytestCheckHook
}:

buildPythonPackage rec {
  version = "5.0.2";
  pname = "approvaltests";
  format = "setuptools";

  disabled = pythonOlder "3.6.1";

  # no tests included in PyPI tarball
  src = fetchFromGitHub {
    owner = "approvals";
    repo = "ApprovalTests.Python";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-yEzfDbYHGm3Za4+yIk5lIWM4I+5TnqfluZj8OLN9oK0=";
  };

  propagatedBuildInputs = [
    allpairspy
    beautifulsoup4
    empty-files
    pyperclip
    pytest
  ];

  checkInputs = [
    numpy
    pytestCheckHook
  ];

  disabledTests = [
    # tests expects paths below ApprovalTests.Python directory
    "test_received_filename"
    "test_pytest_namer"
  ];

  pythonImportsCheck = [
    "approvaltests.approvals"
    "approvaltests.reporters.generic_diff_reporter_factory"
  ];

  meta = with lib; {
    description = "Assertion/verification library to aid testing";
    homepage = "https://github.com/approvals/ApprovalTests.Python";
    license = licenses.asl20;
    maintainers = [ maintainers.marsam ];
  };
}

{'fraction_non_alphanumeric': 0.10928742994395517, 'fraction_numerical': 0.020816653322658127, 'mean_word_length': 3.4704830053667264, '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': '3747207', 'n_tokens_mistral': 936, 'n_tokens_neox': 901, 'n_words': 156}