<commit_before>{ stdenv
, buildPythonPackage
, fetchPypi
, fake_factory
, faker
, python
}:

buildPythonPackage rec {
  pname = "factory_boy";
  version = "2.11.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6f25cc4761ac109efd503f096e2ad99421b1159f01a29dbb917359dcd68e08ca";
  };

  checkInputs = [ faker ];
  propagatedBuildInputs = [ fake_factory ];

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

  meta = with stdenv.lib; {
    description = "A Python package to create factories for complex objects";
    homepage    = https://github.com/rbarrois/factory_boy;
    license     = licenses.mit;
  };

}
<commit_msg>pythonPackages.factory_boy: refactor remove fake_factory dependency<commit_after>{ stdenv
, buildPythonPackage
, fetchPypi
, faker
, python
}:

buildPythonPackage rec {
  pname = "factory_boy";
  version = "2.11.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6f25cc4761ac109efd503f096e2ad99421b1159f01a29dbb917359dcd68e08ca";
  };

  propagatedBuildInputs = [ faker ];

  # tests not included with pypi release
  doCheck = false;

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

  meta = with stdenv.lib; {
    description = "A Python package to create factories for complex objects";
    homepage    = https://github.com/rbarrois/factory_boy;
    license     = licenses.mit;
  };

}

{'fraction_non_alphanumeric': 0.10510948905109489, 'fraction_numerical': 0.06861313868613139, 'mean_word_length': 3.6317567567567566, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5008467', 'n_tokens_mistral': 545, 'n_tokens_neox': 483, 'n_words': 99}