2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyarrow,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
reactivex,
|
|
|
|
setuptools,
|
|
|
|
urllib3,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "influxdb3-python";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.5.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "InfluxCommunity";
|
|
|
|
repo = "influxdb3-python";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-vumKOvCLpcu0z1W/zmf3qsSo3a8FEbI+20/IMt6nCX4=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
certifi
|
|
|
|
pyarrow
|
|
|
|
python-dateutil
|
|
|
|
reactivex
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
# Missing ORC support
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/212863
|
|
|
|
# nativeCheckInputs = [
|
|
|
|
# pytestCheckHook
|
|
|
|
# ];
|
|
|
|
#
|
|
|
|
# pythonImportsCheck = [
|
|
|
|
# "influxdb_client_3"
|
|
|
|
# ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module that provides a simple and convenient way to interact with InfluxDB 3.0";
|
|
|
|
homepage = "https://github.com/InfluxCommunity/influxdb3-python";
|
|
|
|
changelog = "https://github.com/InfluxCommunity/influxdb3-python/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|