3p/nixpkgs: drop influxdb patch, now upstream
This commit is contained in:
parent
490b63936c
commit
fa38944194
2 changed files with 0 additions and 47 deletions
|
@ -1,46 +0,0 @@
|
||||||
From d5dabf12baf21fc037c6a465bfd810ced66b6741 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Luke Granger-Brown <git@lukegb.com>
|
|
||||||
Date: Sun, 13 Aug 2023 20:47:40 +0100
|
|
||||||
Subject: [PATCH] python3.pkgs.influxdb: fix after Pandas bump
|
|
||||||
|
|
||||||
Pandas has removed the deprecated pandas.util.testing package, and there
|
|
||||||
are also some other behaviour changes with parsing date times. Patch
|
|
||||||
the former, and skip the tests affected by the latter.
|
|
||||||
|
|
||||||
Note that upstream is no longer supporting this package and it has been
|
|
||||||
archived on GitHub.
|
|
||||||
---
|
|
||||||
pkgs/development/python-modules/influxdb/default.nix | 10 ++++++++++
|
|
||||||
1 file changed, 10 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/pkgs/development/python-modules/influxdb/default.nix b/pkgs/development/python-modules/influxdb/default.nix
|
|
||||||
index e2bacd522922..ce6bccdd409f 100644
|
|
||||||
--- a/pkgs/development/python-modules/influxdb/default.nix
|
|
||||||
+++ b/pkgs/development/python-modules/influxdb/default.nix
|
|
||||||
@@ -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" ];
|
|
||||||
--
|
|
||||||
2.41.0
|
|
||||||
|
|
1
third_party/nixpkgs/patches/series
vendored
1
third_party/nixpkgs/patches/series
vendored
|
@ -1,2 +1 @@
|
||||||
poetry2nix-cryptography39.0.1.patch
|
poetry2nix-cryptography39.0.1.patch
|
||||||
influxdb-fix-after-Pandas-bump.patch
|
|
||||||
|
|
Loading…
Reference in a new issue