<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pythonAtLeast
, pbr
, testtools
, mock
, python
}:

buildPythonPackage rec {
  pname = "fixtures";
  version = "3.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "fcf0d60234f1544da717a9738325812de1f42c2fa085e2d9252d8fff5712b2ef";
  };

  patches = lib.optional (pythonAtLeast "3.9") [
    # drop tests that try to monkeypatch a classmethod, which fails on python3.9
    # https://github.com/testing-cabal/fixtures/issues/44
    (fetchpatch {
       url = "https://salsa.debian.org/openstack-team/python/python-fixtures/-/raw/debian/victoria/debian/patches/remove-broken-monkey-patch-test.patch";
       sha256 = "1s3hg2zmqc4shmnf90kscphzj5qlqpxghzw2a59p8f88zrbsj97r";
    })
  ];

  nativeBuildInputs = [
    pbr
  ];

  propagatedBuildInputs = [
    testtools
  ];

  checkInputs = [
    mock
  ];

  checkPhase = ''
    ${python.interpreter} -m testtools.run fixtures.test_suite
  '';

  meta = {
    description = "Reusable state for writing clean tests and more";
    homepage = "https://pypi.python.org/pypi/fixtures";
    license = lib.licenses.asl20;
  };
}
<commit_msg>python310Packages.fixtures: propagate implicit six dependency<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pythonAtLeast
, pbr
, testtools
, mock
, python
, six
}:

buildPythonPackage rec {
  pname = "fixtures";
  version = "3.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "fcf0d60234f1544da717a9738325812de1f42c2fa085e2d9252d8fff5712b2ef";
  };

  patches = lib.optional (pythonAtLeast "3.9") [
    # drop tests that try to monkeypatch a classmethod, which fails on python3.9
    # https://github.com/testing-cabal/fixtures/issues/44
    (fetchpatch {
       url = "https://salsa.debian.org/openstack-team/python/python-fixtures/-/raw/debian/victoria/debian/patches/remove-broken-monkey-patch-test.patch";
       sha256 = "1s3hg2zmqc4shmnf90kscphzj5qlqpxghzw2a59p8f88zrbsj97r";
    })
  ];

  nativeBuildInputs = [
    pbr
  ];

  propagatedBuildInputs = [
    testtools
    six # not in install_requires, but used in fixture.py
  ];

  checkInputs = [
    mock
  ];

  checkPhase = ''
    ${python.interpreter} -m testtools.run fixtures.test_suite
  '';

  meta = {
    description = "Reusable state for writing clean tests and more";
    homepage = "https://pypi.python.org/pypi/fixtures";
    license = lib.licenses.asl20;
  };
}

{'fraction_non_alphanumeric': 0.11793611793611794, 'fraction_numerical': 0.061015561015561014, 'mean_word_length': 3.393884892086331, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '1558031', 'n_tokens_mistral': 1005, 'n_tokens_neox': 900, 'n_words': 153}