1a04744f74
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
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aiocsv,
|
|
buildPythonPackage,
|
|
certifi,
|
|
ciso8601,
|
|
fetchFromGitHub,
|
|
numpy,
|
|
pandas,
|
|
python-dateutil,
|
|
reactivex,
|
|
setuptools,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "influxdb-client";
|
|
version = "1.49.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "influxdata";
|
|
repo = "influxdb-client-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-lu3we/KXwP3oC9bfv6gzbwacOVLGSuPBf9giwmsHXgI=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
certifi
|
|
python-dateutil
|
|
reactivex
|
|
setuptools
|
|
urllib3
|
|
];
|
|
|
|
optional-dependencies = {
|
|
async = [
|
|
aiocsv
|
|
aiohttp
|
|
];
|
|
ciso = [ ciso8601 ];
|
|
extra = [
|
|
numpy
|
|
pandas
|
|
];
|
|
};
|
|
|
|
# Requires influxdb server
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "influxdb_client" ];
|
|
|
|
meta = {
|
|
description = "InfluxDB client library";
|
|
homepage = "https://github.com/influxdata/influxdb-client-python";
|
|
changelog = "https://github.com/influxdata/influxdb-client-python/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ mic92 ];
|
|
};
|
|
}
|