<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, six
, pytest-runner
, pytest
}:

buildPythonPackage rec {
  pname = "paste";
  version = "3.5.0";

  src = fetchPypi {
    pname = "Paste";
    inherit version;
    sha256 = "17f3zppjjprs2jnklvzkz23mh9jdn6b1f445mvrjdm4ivi15q28v";
  };

  propagatedBuildInputs = [ six ];

  checkInputs = [ pytest-runner pytest ];

  # Certain tests require network
  checkPhase = ''
    py.test -k "not test_cgiapp and not test_proxy"
  '';

  meta = with lib; {
    description = "Tools for using a Web Server Gateway Interface stack";
    homepage = "http://pythonpaste.org/";
    license = licenses.mit;
  };

}<commit_msg>python39Packages.paste: enable tests<commit_after>{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "paste";
  version = "3.5.0";

  src = fetchFromGitHub {
    owner = "cdent";
    repo = "paste";
    rev = version;
    sha256 = "sha256-yaOxbfQ8rdViepxhdF0UzlelC/ozdsP1lOdU5w4OPEQ=";
  };

  postPatch = ''
    patchShebangs tests/cgiapp_data/
  '';

  # propagatedBuildInputs = [ six ];

  checkInputs = [ pytestCheckHook ];

  disabledTests = [
    # broken test
    "test_file_cache"
    # requires network connection
    "test_proxy_to_website"
  ];

  pythonNamespaces = [ "paste" ];

  meta = with lib; {
    description = "Tools for using a Web Server Gateway Interface stack";
    homepage = "http://pythonpaste.org/";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}
{'fraction_non_alphanumeric': 0.1191879502292076, 'fraction_numerical': 0.025540275049115914, 'mean_word_length': 3.304225352112676, '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': '408635', 'n_tokens_mistral': 583, 'n_tokens_neox': 542, 'n_words': 116}