Skip to content

Commit

Permalink
Merge pull request #320541 from NixOS/backport-317069-to-release-24.05
Browse files Browse the repository at this point in the history
[Backport release-24.05] python3Packages.cartopy: disable tests requiring network access
  • Loading branch information
JohnRTitor authored Aug 21, 2024
2 parents b538a69 + 4e0804f commit 4d2cebf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pkgs/development/python-modules/cartopy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ buildPythonPackage rec {
hash = "sha256-Ix83s1cB8rox2UlZzKdebaBMLuo6fxTOHHXuOw6udnY=";
};

patches = [
# Some tests in the 0.23.0 release are failing due to missing network markers. Revisit after update.
(fetchpatch {
name = "mnt-add-missing-needs-network-markers.patch";
url = "https://github.com/SciTools/cartopy/commit/2403847ea69c3d95e899ad5d0cab32ac6017df0e.patch";
hash = "sha256-aGBUX4jFn7GgoqmHVC51DmS+ga3GcQGKfkut++x67Q0=";
})
];

nativeBuildInputs = [
cython
geos # for geos-config
Expand Down Expand Up @@ -85,7 +94,10 @@ buildPythonPackage rec {
"'not network and not natural_earth'"
];

disabledTests = [ "test_gridliner_labels_bbox_style" ];
disabledTests = [
"test_gridliner_constrained_adjust_datalim"
"test_gridliner_labels_bbox_style"
];

meta = with lib; {
description = "Process geospatial data to create maps and perform analyses";
Expand Down

0 comments on commit 4d2cebf

Please sign in to comment.