2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
2022-08-21 13:32:41 +00:00
|
|
|
, aiohttp
|
2022-10-21 18:38:19 +00:00
|
|
|
, aiocsv
|
2020-07-18 16:06:22 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
2022-10-21 18:38:19 +00:00
|
|
|
, ciso8601
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, pandas
|
2020-07-18 16:06:22 +00:00
|
|
|
, python-dateutil
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
|
|
|
, reactivex
|
2020-07-18 16:06:22 +00:00
|
|
|
, setuptools
|
|
|
|
, urllib3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "influxdb-client";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.33.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "influxdb-client-python";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-RhUIdIwLYJwlpLtyrXO9GCvKY6OLDJl7Aop5acgTHN0=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
python-dateutil
|
2022-10-21 18:38:19 +00:00
|
|
|
reactivex
|
2020-07-18 16:06:22 +00:00
|
|
|
setuptools
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
async = [
|
2022-10-21 18:38:19 +00:00
|
|
|
aiocsv
|
2022-08-21 13:32:41 +00:00
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
ciso = [
|
|
|
|
ciso8601
|
|
|
|
];
|
2022-10-21 18:38:19 +00:00
|
|
|
extra = [
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
# Requires influxdb server
|
2020-07-18 16:06:22 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"influxdb_client"
|
|
|
|
];
|
2021-06-06 07:54:09 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2022-10-21 18:38:19 +00:00
|
|
|
description = "InfluxDB client library";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/influxdata/influxdb-client-python";
|
|
|
|
license = licenses.mit;
|
2022-03-05 16:20:37 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|