2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rx
|
|
|
|
, certifi
|
|
|
|
, six
|
|
|
|
, python-dateutil
|
|
|
|
, setuptools
|
|
|
|
, urllib3
|
|
|
|
, ciso8601
|
|
|
|
, pytz
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "influxdb-client";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.18.0";
|
2021-06-06 07:54:09 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "influxdb-client-python";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "0xgp1wxdfa4y316dfkpmj38chlh68mndr8kqphckpnw16qxsl3d9";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
rx
|
|
|
|
certifi
|
|
|
|
six
|
|
|
|
python-dateutil
|
|
|
|
setuptools
|
|
|
|
urllib3
|
|
|
|
ciso8601
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
# requires influxdb server
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
pythonImportsCheck = [ "influxdb_client" ];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "InfluxDB 2.0 Python client library";
|
|
|
|
homepage = "https://github.com/influxdata/influxdb-client-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|