<commit_before>{ stdenv
, buildPythonPackage
, fetchPyPi

, pythonPackages
}:

let
  inherit (stdenv.lib)
    optionals;
in

buildPythonPackage rec {
  name = "guessit-${version}";
  version = "2.0.5";

  src = fetchPyPi {
    package = "guessit";
    inherit version;
    sha256 = "626e0024c5cca9b84883b65246e4f238e3f39064664486f69f086c853a63ff61";
  };

  postPatch = ''
    sed -i setup.py \
      -e 's/python-dateutil<2.5.2/python-dateutil>=2.5.2/'
  '';

  buildInputs = [
    pythonPackages.babelfish
    pythonPackages.pytestrunner
    pythonPackages.python-dateutil
    pythonPackages.rebulk
    pythonPackages.regex
  ] ++ optionals doCheck [
    pythonPackages.pytest
    pythonPackages.pytest-benchmark
    pythonPackages.pytest-capturelog
    pythonPackages.pyyaml
  ];

  doCheck = false;

  meta = with stdenv.lib; {
    description = "A library for guessing information from video filenames";
    homepage = https://pypi.python.org/pypi/guessit;<commit_msg>guessit: propagate build inputs<commit_after>{ stdenv
, buildPythonPackage
, fetchPyPi

, pythonPackages
}:

let
  inherit (stdenv.lib)
    optionals;
in

buildPythonPackage rec {
  name = "guessit-${version}";
  version = "2.0.5";

  src = fetchPyPi {
    package = "guessit";
    inherit version;
    sha256 = "626e0024c5cca9b84883b65246e4f238e3f39064664486f69f086c853a63ff61";
  };

  postPatch = ''
    sed -i setup.py \
      -e 's/python-dateutil<2.5.2/python-dateutil>=2.5.2/'
  '';

  propagatedBuildInputs = [
    pythonPackages.babelfish
    pythonPackages.pytestrunner
    pythonPackages.python-dateutil
    pythonPackages.rebulk
    pythonPackages.regex
  ] ++ optionals doCheck [
    pythonPackages.pytest
    pythonPackages.pytest-benchmark
    pythonPackages.pytest-capturelog
    pythonPackages.pyyaml
  ];

  doCheck = false;

  meta = with stdenv.lib; {
    description = "A library for guessing information from video filenames";
    homepage = https://pypi.python.org/pypi/guessit;
{'fraction_non_alphanumeric': 0.10587639311043566, 'fraction_numerical': 0.05977710233029382, 'mean_word_length': 3.408482142857143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5088022', 'n_tokens_mistral': 788, 'n_tokens_neox': 717, 'n_words': 118}