<commit_before>{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "pyownet";
  version = "0.10.0.post1";

  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "4f2fa4471c2f806b35090bdc6c092305c6eded3ff3736f8b586d35bdb157de62";
  };

  # tests access network
  doCheck = false;
<commit_msg>python3Packages.pyownet: drop use_2to3 from setup.py<commit_after>{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "pyownet";
  version = "0.10.0.post1";

  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "4f2fa4471c2f806b35090bdc6c092305c6eded3ff3736f8b586d35bdb157de62";
  };

  postPatch = ''
    sed -i '/use_2to3/d' setup.py
  '';

  # tests access network
  doCheck = false;

{'fraction_non_alphanumeric': 0.10943396226415095, 'fraction_numerical': 0.12452830188679245, 'mean_word_length': 3.975, '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': '7053759', 'n_tokens_mistral': 380, 'n_tokens_neox': 321, 'n_words': 57}