1{ lib
2, aiohttp
3, aiocsv
4, buildPythonPackage
5, certifi
6, ciso8601
7, fetchFromGitHub
8, numpy
9, pandas
10, python-dateutil
11, pythonOlder
12, reactivex
13, setuptools
14, urllib3
15}:
16
17buildPythonPackage rec {
18 pname = "influxdb-client";
19 version = "1.36.1";
20 format = "setuptools";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchFromGitHub {
25 owner = "influxdata";
26 repo = "influxdb-client-python";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-O10q/ResES3mE26LZQLgGPSLjhUCEOwZpm6vZj6H5mQ=";
29 };
30
31 propagatedBuildInputs = [
32 certifi
33 python-dateutil
34 reactivex
35 setuptools
36 urllib3
37 ];
38
39 passthru.optional-dependencies = {
40 async = [
41 aiocsv
42 aiohttp
43 ];
44 ciso = [
45 ciso8601
46 ];
47 extra = [
48 numpy
49 pandas
50 ];
51 };
52
53 # Requires influxdb server
54 doCheck = false;
55
56 pythonImportsCheck = [
57 "influxdb_client"
58 ];
59
60 meta = with lib; {
61 description = "InfluxDB client library";
62 homepage = "https://github.com/influxdata/influxdb-client-python";
63 changelog = "https://github.com/influxdata/influxdb-client-python/blob/v${version}/CHANGELOG.md";
64 license = licenses.mit;
65 maintainers = with maintainers; [ mic92 ];
66 };
67}