<commit_before>{ lib, fetchPypi, buildPythonPackage
, configobj, six, traitsui
, nose, tables, pandas
}:

buildPythonPackage rec {
  pname = "apptools";
  version = "4.5.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "10h52ibhr2aw076pivqxiajr9rpcr1mancg6xlpxzckcm3if02i6";
  };

  propagatedBuildInputs = [ configobj six traitsui ];

  checkInputs = [
    nose
    tables
    pandas
  ];

  doCheck = true;
  checkPhase = ''HOME=$TMP nosetests'';

  meta = with lib; {
    description = "Set of packages that Enthought has found useful in creating a number of applications.";
    homepage = "https://github.com/enthought/apptools";
    maintainers = with maintainers; [ knedlsepp ];
    license = licenses.bsdOriginal;
  };
}
<commit_msg>python3Packages.apptools: fix build<commit_after>{ lib, fetchPypi, buildPythonPackage, fetchpatch
, configobj, six, traitsui
, nose, tables, pandas
}:

buildPythonPackage rec {
  pname = "apptools";
  version = "4.5.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "10h52ibhr2aw076pivqxiajr9rpcr1mancg6xlpxzckcm3if02i6";
  };

  # PyTables issue; should be merged in next post-4.5.0 release (#117)
  patches = [ (fetchpatch {
      url = "https://github.com/enthought/apptools/commit/3734289d1a0ebd8513fa67f75288add31ed0113c.patch";
      sha256 = "001012q1ib5cbib3nq1alh9ckzj588bfrywr8brkd1f6y1pgvngk";
    })
  ];

  propagatedBuildInputs = [ configobj six traitsui ];

  checkInputs = [
    nose
    tables
    pandas
  ];

  doCheck = true;
  checkPhase = ''HOME=$TMP nosetests'';

  meta = with lib; {
    description = "Set of packages that Enthought has found useful in creating a number of applications.";
    homepage = "https://github.com/enthought/apptools";
    maintainers = with maintainers; [ knedlsepp ];
    license = licenses.bsdOriginal;
  };
}

{'fraction_non_alphanumeric': 0.10784313725490197, 'fraction_numerical': 0.05228758169934641, 'mean_word_length': 3.7223650385604112, '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': '3866336', 'n_tokens_mistral': 710, 'n_tokens_neox': 645, 'n_words': 143}