2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aiocsv,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
ciso8601,
|
|
|
|
fetchFromGitHub,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
reactivex,
|
|
|
|
setuptools,
|
|
|
|
urllib3,
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "influxdb-client";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.43.0";
|
|
|
|
pyproject = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
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}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-CwSqJj9MslcvTzYGaDRygskSxbSh80uCJQM2tNz743k=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2020-07-18 16:06:22 +00:00
|
|
|
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
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +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";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/influxdata/influxdb-client-python/blob/v${version}/CHANGELOG.md";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.mit;
|
2022-03-05 16:20:37 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|