<commit_before>{ lib, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy }:

buildPythonPackage {
  pname = "fastpair";
  version = "2016-07-05";

  src = fetchFromGitHub {
    owner = "carsonfarmer";
    repo = "fastpair";
    rev = "92364962f6b695661f35a117bf11f96584128a8d";
    sha256 = "1pv9sxycxdk567s5gs947rhlqngrb9nn9yh4dhdvg1ix1i8dca71";
  };

  nativeBuildInputs = [ pytestrunner ];

  checkInputs = [ pytest ];

  propagatedBuildInputs = [
    scipy
  ];

  # Does not support pytest 4 https://github.com/carsonfarmer/fastpair/issues/14
  doCheck = false;

  checkPhase = ''
    pytest fastpair
  '';

  meta = with lib; {
    homepage = "https://github.com/carsonfarmer/fastpair";
    description = "Data-structure for the dynamic closest-pair problem";
    license = licenses.mit;
    maintainers = with maintainers; [ cmcdragonkai ];
  };
}<commit_msg>pythonPackages.fastpair : Updated version and pytest enabled<commit_after>{ lib, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy, pytestCheckHook }:

buildPythonPackage {
  pname = "fastpair";
  version = "2021-05-19";

  src = fetchFromGitHub {
    owner = "carsonfarmer";
    repo = "fastpair";
    rev = "d3170fd7e4d6e95312e7e1cb02e84077a3f06379";
    sha256 = "1l8zgr8awg27lhlkpa2dsvghrb7b12jl1bkgpzg5q7pg8nizl9mx";
  };

  nativeBuildInputs = [ pytestrunner ];

  checkInputs = [ pytest pytestCheckHook ];

  propagatedBuildInputs = [
    scipy
  ];

  meta = with lib; {
    homepage = "https://github.com/carsonfarmer/fastpair";
    description = "Data-structure for the dynamic closest-pair problem";
    license = licenses.mit;
    maintainers = with maintainers; [ cmcdragonkai rakesh4g ];
  };
}
{'fraction_non_alphanumeric': 0.1103934233705226, 'fraction_numerical': 0.06752789195537287, 'mean_word_length': 3.982456140350877, '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': '3396533', 'n_tokens_mistral': 694, 'n_tokens_neox': 636, 'n_words': 111}