17 buildPythonPackage rec {
23 inherit pname version;
24 hash = "sha256-WMZH9gQ3Et2G6a7hLrTM+7tUFUZ7yZEKSKqMdMEQiXA=";
28 # https://github.com/influxdata/influxdb-python/pull/835
33 for f in influxdb/tests/dataframe_client_test.py influxdb/tests/influxdb08/dataframe_client_test.py; do
34 substituteInPlace "$f" \
35 --replace-fail "pandas.util.testing" "pandas.testing"
38 for f in influxdb/tests/influxdb08/client_test.py influxdb/tests/client_test.py; do
39 substituteInPlace "$f" \
40 --replace-fail "assertRaisesRegexp" "assertRaisesRegex"
44 build-system = [ setuptools ];
54 __darwinAllowLocalNetworking = true;
65 # Tests cause FutureWarning due to use of 'record' instead of 'records' in pandas.
66 # https://github.com/influxdata/influxdb-python/pull/845
67 # Also type mismatches in assertEqual on DataFrame:
68 # b'foo[30 chars]_one=1.0,column_two=1.0 0\nfoo,tag_one=red,tag[47 chars]00\n' !=
69 # b'foo[30 chars]_one="1",column_two=1i 0\nfoo,tag_one=red,tag_[46 chars]00\n'
70 "test_write_points_from_dataframe_with_nan_json"
71 "test_write_points_from_dataframe_with_tags_and_nan_json"
72 "test_write_points_from_dataframe_with_numeric_precision"
73 # Reponse is not empty but `s = '孝'` and the JSON decoder chokes on that
74 "test_query_with_empty_result"
75 # Pandas API changes cause it to no longer infer datetimes in the expected manner
76 "test_multiquery_into_dataframe"
77 "test_multiquery_into_dataframe_dropna"
78 # FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead.
79 "test_write_points_from_dataframe_with_tag_escaped"
80 # AssertionError: 2 != 1 : <class 'influxdb.tests.helper_test.TestSeriesHelper.testWarnBulkSizeNoEffect.<locals>.WarnBulkSizeNoEffect'> call should have generated one warning.
81 "testWarnBulkSizeNoEffect"
84 pythonImportsCheck = [ "influxdb" ];
87 description = "Python client for InfluxDB";
88 homepage = "https://github.com/influxdb/influxdb-python";
89 changelog = "https://github.com/influxdata/influxdb-python/blob/v${version}/CHANGELOG.md";
90 license = licenses.mit;
91 maintainers = with maintainers; [ fab ];