<commit_before>{ lib, buildPythonPackage, fetchPypi, pytest }:

buildPythonPackage rec {
  version = "3.4";
  pname = "ftputil";

  src = fetchPypi {
    inherit pname version;
    sha256 = "374b01e174079e91babe2a462fbd6f6c00dbfbfa299dec04239ca4229fbf8762";
  };

  checkInputs = [ pytest ];

  checkPhase = ''
    touch Makefile
    # Disable tests that require network access or access /home
    py.test test \
      -k "not test_public_servers and not test_real_ftp \
          and not test_set_parser and not test_repr"
  '';
<commit_msg>pythonPackages.ftputil: fix build<commit_after>{ lib, buildPythonPackage, fetchPypi, pytest }:

buildPythonPackage rec {
  version = "3.4";
  pname = "ftputil";

  src = fetchPypi {
    inherit pname version;
    sha256 = "374b01e174079e91babe2a462fbd6f6c00dbfbfa299dec04239ca4229fbf8762";
  };

  checkInputs = [ pytest ];

  checkPhase = ''
    touch Makefile
    # Disable tests that require network access or access /home or assume execution before year 2020
    py.test test \
      -k "not test_public_servers and not test_real_ftp \
          and not test_set_parser and not test_repr \
          and not test_conditional_upload and not test_conditional_download_with_older_target"
  '';

{'fraction_non_alphanumeric': 0.07679870654810024, 'fraction_numerical': 0.07113985448666128, 'mean_word_length': 3.5182481751824817, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '670957', 'n_tokens_mistral': 481, 'n_tokens_neox': 426, 'n_words': 106}