python3-influxdb: update to 5.3.2
authorAlexandru Ardelean <redacted>
Thu, 9 Apr 2026 05:27:54 +0000 (08:27 +0300)
committerAlexandru Ardelean <redacted>
Fri, 10 Apr 2026 11:01:09 +0000 (14:01 +0300)
Update package to 5.3.2.

Bug fix:
- Correctly serialize nanosecond-precision DataFrame timestamps;
  previously nanosecond timestamps were not serialized correctly when
  writing via DataFrameClient

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-influxdb/Makefile
lang/python/python-influxdb/test.sh [new file with mode: 0755]

index a71d9fd4760028ce06c79b97d1c2dd4746471b3d..1e308d4890adfbcd35970146d40d8a97676df5d8 100644 (file)
@@ -5,12 +5,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-influxdb
-PKG_VERSION:=5.3.1
+PKG_VERSION:=5.3.2
 PKG_RELEASE:=1
-PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com> 
+PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 
 PYPI_NAME:=influxdb
-PKG_HASH:=46f85e7b04ee4b3dee894672be6a295c94709003a7ddea8820deec2ac4d8b27a
+PKG_HASH:=58c647f6043712dd86e9aee12eb4ccfbbb5415467bc9910a48aa8c74c1108970
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
diff --git a/lang/python/python-influxdb/test.sh b/lang/python/python-influxdb/test.sh
new file mode 100755 (executable)
index 0000000..8397418
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+[ "$1" = python3-influxdb ] || exit 0
+
+python3 - << 'EOF'
+from influxdb import DataFrameClient, InfluxDBClient
+from influxdb.line_protocol import make_lines
+
+# Test line protocol generation (no server needed)
+data = [
+    {
+        "measurement": "cpu",
+        "tags": {"host": "server01"},
+        "fields": {"value": 0.64},
+    }
+]
+line = make_lines({"points": data}).strip()
+assert line.startswith("cpu,host=server01"), f"Unexpected line: {line}"
+assert "value=0.64" in line
+
+# Test client instantiation (no connection)
+client = InfluxDBClient(host="localhost", port=8086, database="testdb")
+assert client._host == "localhost"
+assert client._port == 8086
+EOF
git clone https://git.99rst.org/PROJECT