nixpkgs/pkgs/development/python-modules/influxdb3-python/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

69 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
certifi,
fetchFromGitHub,
pyarrow,
python-dateutil,
reactivex,
setuptools,
pandas,
polars,
urllib3,
}:
buildPythonPackage rec {
pname = "influxdb3-python";
version = "0.16.0";
pyproject = true;
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 = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}