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