13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
62 lines
1 KiB
Nix
62 lines
1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, rx
|
|
, certifi
|
|
, six
|
|
, python-dateutil
|
|
, setuptools
|
|
, urllib3
|
|
, ciso8601
|
|
, pytz
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "influxdb-client";
|
|
version = "1.31.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "influxdata";
|
|
repo = "influxdb-client-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-gTJgY4vFgmFDn2WYUKEbvbu7hjxcw2QGI+blensS5BI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
rx
|
|
certifi
|
|
six
|
|
python-dateutil
|
|
setuptools
|
|
urllib3
|
|
pytz
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
async = [
|
|
aiohttp
|
|
];
|
|
ciso = [
|
|
ciso8601
|
|
];
|
|
};
|
|
|
|
# requires influxdb server
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"influxdb_client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "InfluxDB 2.0 Python client library";
|
|
homepage = "https://github.com/influxdata/influxdb-client-python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mic92 ];
|
|
};
|
|
}
|