<commit_before>{ lib, stdenv, buildPythonPackage, fetchPypi, requests }:

buildPythonPackage rec {
  pname = "pyowm";
  version = "2.8.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0y2r322pcamabar70513pbyiq26x33l1aq9cim6k30lk9p4aq310";
  };

  propagatedBuildInputs = [ requests ];

  meta = with lib; {
    description = "A Python wrapper around the OpenWeatherMap web API";
    homepage = https://pyowm.readthedocs.io/;
    license = licenses.mit;
  };
}<commit_msg>python.pkgs.pyowm: fix build<commit_after>{ lib, stdenv, buildPythonPackage, fetchPypi, requests }:

buildPythonPackage rec {
  pname = "pyowm";
  version = "2.8.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0y2r322pcamabar70513pbyiq26x33l1aq9cim6k30lk9p4aq310";
  };

  propagatedBuildInputs = [ requests ];

  # This may actually break the package.
  postPatch = ''
    substituteInPlace setup.py --replace "requests>=2.18.2,<2.19" "requests"
  '';

  # No tests in archive
  doCheck = false;

  meta = with lib; {
    description = "A Python wrapper around the OpenWeatherMap web API";
    homepage = https://pyowm.readthedocs.io/;
    license = licenses.mit;
  };
}
{'fraction_non_alphanumeric': 0.11724723874256585, 'fraction_numerical': 0.05692438402718777, 'mean_word_length': 3.6746031746031744, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5622164', 'n_tokens_mistral': 475, 'n_tokens_neox': 425, 'n_words': 94}