From dde1a57138f2955bc51bbbc5db94dbbfa85222c7 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 1 Nov 2023 00:13:32 +0100 Subject: python3Packages.db-dtypes: unbreak fixes https://hydra.nixos.org/build/239679666 This fix pulls in fixes from upstream. Resulted from changes further upstream. --- pkgs/development/python-modules/db-dtypes/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'pkgs/development/python-modules/db-dtypes') diff --git a/pkgs/development/python-modules/db-dtypes/default.nix b/pkgs/development/python-modules/db-dtypes/default.nix index d3fc32ab01d..a7fbfd1b378 100644 --- a/pkgs/development/python-modules/db-dtypes/default.nix +++ b/pkgs/development/python-modules/db-dtypes/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , numpy , packaging , pandas @@ -23,6 +24,21 @@ buildPythonPackage rec { hash = "sha256-OAVHx/a4uupVGXSWN2/3uem9/4i+TUkzTX4kp0uLY44="; }; + patches = [ + # on master branch, to be released as 1.1.2 + (fetchpatch { + name = "xfail-tests-that-are-known-to-fail.patch"; + url = "https://github.com/googleapis/python-db-dtypes-pandas/commit/4a56b766b0ccba900a555167863f1081a76c4c0d.patch"; + hash = "sha256-ra1d8Vewvwhkr7PBHc3KM6IUCWsHxE+B7UP2duTgjew="; + }) + # on master branch, to be released as 1.1.2 + (fetchpatch { + name = "add-import-and-object-reference-due-to-upstream-changes.patch"; + url = "https://github.com/googleapis/python-db-dtypes-pandas/commit/8a7b25f3e708df5cd32afcb702fe16130846b165.patch"; + hash = "sha256-JVbhiOIr5gKMSQpIQ+DgIRqq8V5x5ClQhkQzAmIYqEU="; + }) + ]; + propagatedBuildInputs = [ numpy packaging -- cgit 1.4.1