python312Packages.influxdb3-python: add optional-dependencies (#356094)
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
pythonOlder,
|
||||
reactivex,
|
||||
setuptools,
|
||||
pandas,
|
||||
polars,
|
||||
urllib3,
|
||||
}:
|
||||
|
||||
@@ -25,6 +27,12 @@ buildPythonPackage rec {
|
||||
hash = "sha256-4P+bQEldyBNh4qsIkoZLXnUOrQ5wVGbr55xbS0oQMMM=";
|
||||
};
|
||||
|
||||
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 = [
|
||||
@@ -35,6 +43,15 @@ buildPythonPackage rec {
|
||||
urllib3
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
pandas = [ pandas ];
|
||||
polars = [ polars ];
|
||||
dataframe = [
|
||||
pandas
|
||||
polars
|
||||
];
|
||||
};
|
||||
|
||||
# Missing ORC support
|
||||
# https://github.com/NixOS/nixpkgs/issues/212863
|
||||
# nativeCheckInputs = [
|
||||
|
||||
Reference in New Issue
Block a user