@@ -0,0 +1,53 @@
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+
15+buildPythonPackage rec {
16+ pname = "influxdb-client";
17+ version = "1.8.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 = "0gf0fjkd10yn1bb86rfapnd5diraivshn9mhzqxaxwlfah45q187";
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+}