<commit_before>{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
, flask, blinker, twill }:

with stdenv.lib;

buildPythonPackage rec {
  name = "${pname}-${version}";
  pname = "Flask-Testing";
  version = "0.6.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1w0dpwvrcpffm8ychyxpm8s5blm7slik9kplh9jb3sgwcv9gyppj";
  };

  postPatch = ''
    sed -i -e 's/twill==0.9.1/twill/' setup.py
  '';

  buildInputs = optionals (pythonOlder "3.0") [ twill ];
  propagatedBuildInputs = [ flask blinker ];
<commit_msg>python: Flask-Testing: 0.6.2 -> 0.7.1<commit_after>{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
, flask, blinker, twill }:

with stdenv.lib;

buildPythonPackage rec {
  name = "${pname}-${version}";
  pname = "Flask-Testing";
  version = "0.7.1";

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

  postPatch = ''
    sed -i -e 's/twill==0.9.1/twill/' setup.py
  '';

  buildInputs = optionals (pythonOlder "3.0") [ twill ];
  propagatedBuildInputs = [ flask blinker ];

{'fraction_non_alphanumeric': 0.14954128440366973, 'fraction_numerical': 0.07247706422018349, 'mean_word_length': 3.848888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4261456', 'n_tokens_mistral': 490, 'n_tokens_neox': 448, 'n_words': 81}