<commit_before>{ stdenv
, buildPythonPackage
, fetchFromGitHub
, requests
, cryptography
, suds-jurko
, pytest
}:

buildPythonPackage rec {
  pname = "transip-api";
  version = "2.0.0";

  src = fetchFromGitHub {
    owner = "benkonrath";
    repo = pname;
    rev = "v${version}";
    sha256 = "153x8ph7cp432flaqiy2zgp060ddychcqcrssxkcmjvbm86xrz17";
  };

  checkInputs = [ pytest ];

  # Constructor Tests require network access
  checkPhase = ''
    pytest --deselect=tests/service_tests/test_domain.py::TestDomainService::test_constructor \
           --deselect tests/service_tests/test_vps.py::TestVPSService::testConstructor \
           --deselect tests/service_tests/test_webhosting.py::TestWebhostingService::testConstructor
  '';


  propagatedBuildInputs = [ requests cryptography suds-jurko ];

  meta = with stdenv.lib; {
    description = "TransIP API Connector";
    homepage = "https://github.com/benkonrath/transip-api";
    license = licenses.mit;
    maintainers = with maintainers; [ flyfloh ];
  };
}
<commit_msg>python3Packages.transip: disable <python3.5<commit_after>{ stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy27
, requests
, cryptography
, suds-jurko
, pytest
}:

buildPythonPackage rec {
  pname = "transip-api";
  version = "2.0.0";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "benkonrath";
    repo = pname;
    rev = "v${version}";
    sha256 = "153x8ph7cp432flaqiy2zgp060ddychcqcrssxkcmjvbm86xrz17";
  };

  checkInputs = [ pytest ];

  # Constructor Tests require network access
  checkPhase = ''
    pytest --deselect=tests/service_tests/test_domain.py::TestDomainService::test_constructor \
           --deselect tests/service_tests/test_vps.py::TestVPSService::testConstructor \
           --deselect tests/service_tests/test_webhosting.py::TestWebhostingService::testConstructor
  '';


  propagatedBuildInputs = [ requests cryptography suds-jurko ];

  meta = with stdenv.lib; {
    description = "TransIP API Connector";
    homepage = "https://github.com/benkonrath/transip-api";
    license = licenses.mit;
    maintainers = with maintainers; [ flyfloh ];
  };
}

{'fraction_non_alphanumeric': 0.11784037558685447, 'fraction_numerical': 0.023943661971830985, 'mean_word_length': 3.865296803652968, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6535364', 'n_tokens_mistral': 765, 'n_tokens_neox': 728, 'n_words': 119}