1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, rx
5, certifi
6, six
7, python-dateutil
8, setuptools
9, urllib3
10, ciso8601
11, pytz
12, pythonOlder
13}:
14
15buildPythonPackage rec {
16 pname = "influxdb-client";
17 version = "1.15.0";
18
19 disabled = pythonOlder "3.6"; # requires python version >=3.6
20
21 src = fetchFromGitHub {
22 owner = "influxdata";
23 repo = "influxdb-client-python";
24 rev = "v${version}";
25 sha256 = "1b2xh78v965rgafyj7cdbjm2p96d74f7ifsqllc7242n9wv3k53q";
26 };
27
28 # makes test not reproducible
29 postPatch = ''
30 sed -i -e '/randomize/d' test-requirements.txt
31 '';
32
33 propagatedBuildInputs = [
34 rx
35 certifi
36 six
37 python-dateutil
38 setuptools
39 urllib3
40 ciso8601
41 pytz
42 ];
43
44 # requires influxdb server
45 doCheck = false;
46
47 meta = with lib; {
48 description = "InfluxDB 2.0 Python client library";
49 homepage = "https://github.com/influxdata/influxdb-client-python";
50 license = licenses.mit;
51 maintainers = [ maintainers.mic92 ];
52 };
53}