3p/nixpkgs: fixup influxdb after pandas bump

This commit is contained in:
Luke Granger-Brown 2023-08-13 21:18:25 +01:00
parent 75fa0ae5af
commit a7cf52919d
2 changed files with 11 additions and 0 deletions

View file

@ -1 +1,2 @@
poetry2nix-cryptography39.0.1.patch
influxdb-fix-after-Pandas-bump.patch

View file

@ -23,6 +23,13 @@ buildPythonPackage rec {
sha256 = "0ymjv322mv6y424fmpd70f87152w55mbwwj6i7p3sjzf0ixmxy26";
};
postPatch = ''
for f in influxdb/tests/dataframe_client_test.py influxdb/tests/influxdb08/dataframe_client_test.py; do
substituteInPlace "$f" \
--replace "pandas.util.testing" "pandas.testing"
done
'';
propagatedBuildInputs = [
requests
python-dateutil
@ -51,6 +58,9 @@ buildPythonPackage rec {
"test_write_points_from_dataframe_with_tags_and_nan_json"
# Reponse is not empty but `s = '孝'` and the JSON decoder chokes on that
"test_query_with_empty_result"
# Pandas API changes cause it to no longer infer datetimes in the expected manner
"test_multiquery_into_dataframe"
"test_multiquery_into_dataframe_dropna"
];
pythonImportsCheck = [ "influxdb" ];