python3Packages.db-dtypes: unbreak

fixes https://hydra.nixos.org/build/239679666

This fix pulls in fixes from upstream.
Resulted from changes further upstream.
This commit is contained in:
Peder Bergebakken Sundt
2023-11-01 00:15:22 +01:00
parent 0a040b6fbf
commit dde1a57138
@@ -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