git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #144806 from alyssais/geopandas

geopandas: 0.9.0 -> 0.10.2; fix check

commit1de16bba005c7f8005dd6c2857808eb0b8e00eb3 authorFabian Affolter <fabian@affolter-engineering.ch> dateFri 5 Nov 2021, 23:58 (5 years ago) parentea58baa2f12136
1 file changed+7−16
pkgs/development/python-modules/geopandas/default.nix+7−16
pkgs/development/python-modules/geopandas/default.nix+7−16
@@ -1,32 +1,19 @@
1−{ lib, stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder
1+{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
22, pandas, shapely, fiona, pyproj
33, pytestCheckHook, Rtree }:
44
55buildPythonPackage rec {
66 pname = "geopandas";
7− version = "0.9.0";
7+ version = "0.10.2";
88 disabled = pythonOlder "3.6";
99
1010 src = fetchFromGitHub {
1111 owner = "geopandas";
1212 repo = "geopandas";
1313 rev = "v${version}";
14− sha256 = "sha256-58X562OkRzZ4UTNMTwXW4U5czoa5tbSMBCcE90DqbaE=";
14+ sha256 = "14azl3gppqn90k8h4hpjilsivj92k6p1jh7mdr6p4grbww1b7sdq";
1515 };
1616
17− patches = [
18− (fetchpatch {
19− name = "skip-pandas-master-fillna-test.patch";
20− url = "https://github.com/geopandas/geopandas/pull/1878.patch";
21− sha256 = "1yw3i4dbhaq7f02n329b9y2cqxbwlz9db81mhgrfc7af3whwysdb";
22− })
23− (fetchpatch {
24− name = "fix-proj4strings-test.patch";
25− url = "https://github.com/geopandas/geopandas/pull/1958.patch";
26− sha256 = "0kzmpq5ry87yvhqr6gnh9p2606b06d3ynzjvw0hpp9fncczpc2yn";
27− })
28− ];
29−
3017 propagatedBuildInputs = [
3118 pandas
3219 shapely
@@ -35,6 +22,10 @@ buildPythonPackage rec {
3522 ];
3623
3724 doCheck = !stdenv.isDarwin;
25+ preCheck = ''
26+ # Wants to write test files into $HOME.
27+ export HOME="$TMPDIR"
28+ '';
3829 checkInputs = [ pytestCheckHook Rtree ];
3930 disabledTests = [
4031 # requires network access