From 7e6325efd413bd72df9b9a89af9669f843120b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 19 Sep 2021 08:50:21 -0700 Subject: [PATCH] python3Packages.geopandas: fix tests --- .../python-modules/geopandas/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/geopandas/default.nix b/pkgs/development/python-modules/geopandas/default.nix index 7bd45a2b46ee..82acdbb8548e 100644 --- a/pkgs/development/python-modules/geopandas/default.nix +++ b/pkgs/development/python-modules/geopandas/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder +{ lib, stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder , pandas, shapely, fiona, pyproj , pytestCheckHook, Rtree }: @@ -14,6 +14,19 @@ buildPythonPackage rec { sha256 = "sha256-58X562OkRzZ4UTNMTwXW4U5czoa5tbSMBCcE90DqbaE="; }; + patches = [ + (fetchpatch { + name = "skip-pandas-master-fillna-test.patch"; + url = "https://github.com/geopandas/geopandas/pull/1878.patch"; + sha256 = "1yw3i4dbhaq7f02n329b9y2cqxbwlz9db81mhgrfc7af3whwysdb"; + }) + (fetchpatch { + name = "fix-proj4strings-test.patch"; + url = "https://github.com/geopandas/geopandas/pull/1958.patch"; + sha256 = "0kzmpq5ry87yvhqr6gnh9p2606b06d3ynzjvw0hpp9fncczpc2yn"; + }) + ]; + propagatedBuildInputs = [ pandas shapely