python3Packages.geopandas: fix tests

This commit is contained in:
Robert T. McGibbon 2022-04-23 13:13:58 -04:00 committed by Jonathan Ringer
parent 64ecf2a514
commit 42282ebb76

View File

@ -1,4 +1,4 @@
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder { lib, stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder
, pandas, shapely, fiona, pyproj , pandas, shapely, fiona, pyproj
, pytestCheckHook, Rtree }: , pytestCheckHook, Rtree }:
@ -14,6 +14,19 @@ buildPythonPackage rec {
sha256 = "14azl3gppqn90k8h4hpjilsivj92k6p1jh7mdr6p4grbww1b7sdq"; sha256 = "14azl3gppqn90k8h4hpjilsivj92k6p1jh7mdr6p4grbww1b7sdq";
}; };
patches = [
# Fixes a test, will be included in the next release after 0.10.2
(fetchpatch {
url = "https://github.com/geopandas/geopandas/pull/2219/commits/ac67515c9df745b672cca1669adf05eaf5cb0f3b.patch";
sha256 = "sha256-XcaoFhD6Rq0nfEpMbOJiAWPbaPDrMwFwoyppayq8NHc=";
})
# 5 commits from post 0.10.2 that fix the test suite compatibility with pandas >=1.4
(fetchpatch {
url = "https://github.com/geopandas/geopandas/pull/2289.patch";
sha256 = "sha256-BcZVdaO/DdpZoVGUWaw9etFvvgwizAgrkaBISEOhV4A=";
})
];
propagatedBuildInputs = [ propagatedBuildInputs = [
pandas pandas
shapely shapely