summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Baker <connor.baker@tweag.io>2024-06-04 03:08:01 +0000
committerNiklas Hambüchen <mail@nh2.me>2024-06-17 15:59:18 +0200
commit4e0804fd32362d87a40e75a64073bf5888b166c3 (patch)
treec5aa2f7cdc5bff2887a504eb33af9be6368ff3a7
parentMerge pull request #320412 from NixOS/backport-320325-to-release-24.05 (diff)
downloadnixpkgs-origin/backport-317069-to-release-24.05.tar.gz
python3Packages.cartopy: disable tests requiring network accessorigin/backport-317069-to-release-24.05
(cherry picked from commit 18b0f6c25a1a8fc46da42be51c07b11566c7ec47)
-rw-r--r--pkgs/development/python-modules/cartopy/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/cartopy/default.nix b/pkgs/development/python-modules/cartopy/default.nix
index 9df147a45c5f..22917947f688 100644
--- a/pkgs/development/python-modules/cartopy/default.nix
+++ b/pkgs/development/python-modules/cartopy/default.nix
@@ -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
@@ -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";