Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
certifi,
fetchFromGitHub,
pyarrow,
python-dateutil,
pythonOlder,
reactivex,
setuptools,
pandas,
polars,
urllib3,
}:
buildPythonPackage rec {
pname = "influxdb3-python";
version = "0.16.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "InfluxCommunity";
repo = "influxdb3-python";
tag = "v${version}";
hash = "sha256-o4w1+srucPlRq/NqICvdRNxmghxEBoXH05m3m0GQJFM=";
};
postPatch = ''
# Upstream falls back to a default version if not in a GitHub Actions
substituteInPlace setup.py \
--replace-fail "version=get_version()," "version = '${version}',"
'';
build-system = [ setuptools ];
dependencies = [
certifi
pyarrow
python-dateutil
reactivex
urllib3
];
optional-dependencies = {
pandas = [ pandas ];
polars = [ polars ];
dataframe = [
pandas
polars
];
};
# 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/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}