<commit_before>{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, matplotlib
, pkgs
}:

buildPythonPackage rec {
  pname = "Pweave";
  version = "0.30.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "5e5298d90e06414a01f48e0d6aa4c36a70c5f223d929f2a9c7e2d388451c7357";
  };

  buildInputs = [ mock pkgs.glibcLocales ];
  propagatedBuildInputs = [ matplotlib ];

  # fails due to trying to run CSS as test
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Scientific reports with embedded python computations with reST, LaTeX or markdown";
    homepage = http://mpastell.com/pweave/ ;
    license = licenses.bsd3;
  };

}<commit_msg>python{2,3}Packages.Pweave: fix build<commit_after>{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, matplotlib
, pkgs
, nbconvert
, markdown
, isPy3k
}:

buildPythonPackage rec {
  pname = "Pweave";
  version = "0.30.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "5e5298d90e06414a01f48e0d6aa4c36a70c5f223d929f2a9c7e2d388451c7357";
  };

  disabled = !isPy3k;

  buildInputs = [ mock pkgs.glibcLocales ];
  propagatedBuildInputs = [ matplotlib nbconvert markdown ];

  # fails due to trying to run CSS as test
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Scientific reports with embedded python computations with reST, LaTeX or markdown";
    homepage = http://mpastell.com/pweave/ ;
    license = licenses.bsd3;
  };

}
{'fraction_non_alphanumeric': 0.1002805049088359, 'fraction_numerical': 0.07573632538569425, 'mean_word_length': 3.820945945945946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2489150', 'n_tokens_mistral': 610, 'n_tokens_neox': 539, 'n_words': 119}