<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, mock
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, sybil
, twisted
, zope_component
}:

buildPythonPackage rec {
  pname = "testfixtures";
  version = "6.18.3";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-JgAQCulv/QgjNLN441VVD++LSlKab6TDT0cTCQXHQm0=";
  };

  checkInputs = [
    mock
    pytestCheckHook
    sybil
    twisted
    zope_component
  ];

  disabledTestPaths = [
    # Django is too much hasle to setup at the moment
    "testfixtures/tests/test_django"
  ];

  disabledTests = lib.optionals (pythonAtLeast "3.10") [
    # https://github.com/simplistix/testfixtures/issues/168
    "test_invalid_communicate_call"
    "test_invalid_kill"
    "test_invalid_parameters"
    "test_invalid_poll"<commit_msg>python3Packages.testfixtures: disable tests, incompatible with new sybil<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, mock
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, sybil
, twisted
, zope_component
}:

buildPythonPackage rec {
  pname = "testfixtures";
  version = "6.18.3";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-JgAQCulv/QgjNLN441VVD++LSlKab6TDT0cTCQXHQm0=";
  };

  # no longer compatible with sybil
  # https://github.com/simplistix/testfixtures/issues/169
  doCheck = false;
  checkInputs = [
    mock
    pytestCheckHook
    sybil
    twisted
    zope_component
  ];

  disabledTestPaths = [
    # Django is too much hasle to setup at the moment
    "testfixtures/tests/test_django"
  ];

  disabledTests = lib.optionals (pythonAtLeast "3.10") [
    # https://github.com/simplistix/testfixtures/issues/168
    "test_invalid_communicate_call"
    "test_invalid_kill"
    "test_invalid_parameters"
    "test_invalid_poll"
{'fraction_non_alphanumeric': 0.10010593220338983, 'fraction_numerical': 0.02754237288135593, 'mean_word_length': 3.7225, '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': '1083973', 'n_tokens_mistral': 723, 'n_tokens_neox': 680, 'n_words': 125}