2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchPypi
|
2021-03-23 19:22:30 +00:00
|
|
|
, fetchpatch
|
|
|
|
, mock
|
|
|
|
, msgpack
|
|
|
|
, nose
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytz
|
2021-03-23 19:22:30 +00:00
|
|
|
, requests
|
|
|
|
, requests-mock
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "influxdb";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "5.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0ymjv322mv6y424fmpd70f87152w55mbwwj6i7p3sjzf0ixmxy26";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2021-03-23 19:22:30 +00:00
|
|
|
pytz
|
|
|
|
six
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-23 19:22:30 +00:00
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests cause FutureWarning due to use of 'record' instead of 'records' in pandas.
|
|
|
|
# https://github.com/influxdata/influxdb-python/pull/845
|
|
|
|
# Also type mismatches in assertEqual on DataFrame:
|
|
|
|
# b'foo[30 chars]_one=1.0,column_two=1.0 0\nfoo,tag_one=red,tag[47 chars]00\n' !=
|
|
|
|
# b'foo[30 chars]_one="1",column_two=1i 0\nfoo,tag_one=red,tag_[46 chars]00\n'
|
|
|
|
"test_write_points_from_dataframe_with_nan_json"
|
|
|
|
"test_write_points_from_dataframe_with_tags_and_nan_json"
|
2021-12-06 16:07:01 +00:00
|
|
|
# Reponse is not empty but `s = '孝'` and the JSON decoder chokes on that
|
|
|
|
"test_query_with_empty_result"
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "influxdb" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python client for InfluxDB";
|
|
|
|
homepage = "https://github.com/influxdb/influxdb-python";
|
|
|
|
license = licenses.mit;
|
2021-03-23 19:22:30 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|