8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
53 lines
926 B
Nix
53 lines
926 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, rx
|
|
, certifi
|
|
, six
|
|
, python-dateutil
|
|
, setuptools
|
|
, urllib3
|
|
, ciso8601
|
|
, pytz
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "influxdb-client";
|
|
version = "1.26.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "influxdata";
|
|
repo = "influxdb-client-python";
|
|
rev = "v${version}";
|
|
hash = "sha256-9MI6AgFTEw9dnBWdry3FnPERXnXZJhbYX4tXj9sGMkg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
rx
|
|
certifi
|
|
six
|
|
python-dateutil
|
|
setuptools
|
|
urllib3
|
|
ciso8601
|
|
pytz
|
|
];
|
|
|
|
# requires influxdb server
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"influxdb_client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "InfluxDB 2.0 Python client library";
|
|
homepage = "https://github.com/influxdata/influxdb-client-python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mic92 ];
|
|
};
|
|
}
|