File project.diff of Package python-influxdb
--- python-influxdb.spec.orig
+++ python-influxdb.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-influxdb
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,17 +17,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%global skip_python2 1
Name: python-influxdb
-Version: 5.2.3
+Version: 5.3.1
Release: 0
Summary: InfluxDB client
License: MIT
Group: Development/Languages/Python
-URL: https://github.com/influxdb/influxdb-python
-Source: https://github.com/influxdata/influxdb-python/archive/v%{version}.tar.gz
-# fix module 'distutils' has no attribute 'spawn'
-Patch1: python-influxdb-fix-testsuite.patch
+URL: https://pypi.org/project/influxdb
+Source: https://files.pythonhosted.org/packages/86/4f/a9c524576677c1694b149e09d4fd6342e4a1d9a5f409e437168a14d6d150/influxdb-5.3.1.tar.gz
BuildRequires: %{python_module python-dateutil >= 2.0.0}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests >= 1.0.3}
@@ -41,9 +38,8 @@ Requires: python-requests >= 1.17.
Requires: python-six >= 1.10.0
BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
-BuildRequires: %{python_module pandas}
+#BuildRequires: %{python_module pandas}
BuildRequires: %{python_module requests-mock}
BuildRequires: influxdb
%if 0%{?suse_version} >= 1500
@@ -56,14 +52,13 @@ BuildRequires: hostname
InfluxDB-Python is a client for interacting with InfluxDB_. Maintained by @aviau (https://github.com/aviau).
%prep
-%setup -q -n influxdb-python-%{version}
-%patch1 -p1
+%setup -q -n influxdb-%{version}
%build
%python_build
%check
-%python_expand nosetests-%{$python_bin_suffix} -v
+##%%python_expand nosetests-%%{$python_bin_suffix} -v
%install
%python_install