1{ lib
2, buildPythonPackage
3, python-dateutil
4, fetchPypi
5, fetchpatch
6, mock
7, msgpack
8, nose
9, pandas
10, pytestCheckHook
11, pytz
12, requests
13, requests-mock
14, six
15}:
16
17buildPythonPackage rec {
18 pname = "influxdb";
19 version = "5.3.1";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "0ymjv322mv6y424fmpd70f87152w55mbwwj6i7p3sjzf0ixmxy26";
24 };
25
26 propagatedBuildInputs = [
27 requests
28 python-dateutil
29 pytz
30 six
31 msgpack
32 ];
33
34 checkInputs = [
35 pytestCheckHook
36 requests-mock
37 mock
38 nose
39 pandas
40 ];
41
42 disabledTests = [
43 # Tests cause FutureWarning due to use of 'record' instead of 'records' in pandas.
44 # https://github.com/influxdata/influxdb-python/pull/845
45 # Also type mismatches in assertEqual on DataFrame:
46 # b'foo[30 chars]_one=1.0,column_two=1.0 0\nfoo,tag_one=red,tag[47 chars]00\n' !=
47 # b'foo[30 chars]_one="1",column_two=1i 0\nfoo,tag_one=red,tag_[46 chars]00\n'
48 "test_write_points_from_dataframe_with_nan_json"
49 "test_write_points_from_dataframe_with_tags_and_nan_json"
50 # Reponse is not empty but `s = '孝'` and the JSON decoder chokes on that
51 "test_query_with_empty_result"
52 ];
53
54 pythonImportsCheck = [ "influxdb" ];
55
56 meta = with lib; {
57 description = "Python client for InfluxDB";
58 homepage = "https://github.com/influxdb/influxdb-python";
59 license = licenses.mit;
60 maintainers = with maintainers; [ fab ];
61 };
62}