<commit_before>{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
, basemap-data
, cython
, geos
, numpy
, matplotlib
, pillow
, pyproj
, pyshp
, python
, setuptools
}:

buildPythonPackage rec {
  pname = "basemap";
  version = "1.3.3";

  src = fetchFromGitHub {
    owner = "matplotlib";
    repo = "basemap";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-ObRQ5GsYx3k7fLaaK5Z4Td54rW/Nnx5+2zm8KLCIZl8=";
  };

  sourceRoot = "source/packages/basemap";

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "numpy >= 1.21, < 1.23" "numpy >= 1.21, < 1.24" \
      --replace "pyshp >= 1.2, < 2.2" "pyshp >= 1.2, < 2.4"
  '';<commit_msg>python310Packages.basemap: 1.3.3 -> 1.3.4<commit_after>{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
, basemap-data
, cython
, geos
, numpy
, matplotlib
, pillow
, pyproj
, pyshp
, python
, setuptools
}:

buildPythonPackage rec {
  pname = "basemap";
  version = "1.3.4";

  src = fetchFromGitHub {
    owner = "matplotlib";
    repo = "basemap";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-F/6xPmdXSJAuASyFaKOP+6Jz8U2JRZdqErEH7PFkr/w=";
  };

  sourceRoot = "source/packages/basemap";

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "numpy >= 1.21, < 1.23" "numpy >= 1.21, < 1.24" \
      --replace "pyshp >= 1.2, < 2.2" "pyshp >= 1.2, < 2.4"
  '';
{'fraction_non_alphanumeric': 0.1676342525399129, 'fraction_numerical': 0.0602322206095791, 'mean_word_length': 3.141141141141141, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '670949', 'n_tokens_mistral': 647, 'n_tokens_neox': 586, 'n_words': 102}