84cb9d505d
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
49 lines
891 B
Nix
49 lines
891 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, rx
|
|
, certifi
|
|
, six
|
|
, python-dateutil
|
|
, setuptools
|
|
, urllib3
|
|
, ciso8601
|
|
, pytz
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "influxdb-client";
|
|
version = "1.21.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "influxdata";
|
|
repo = "influxdb-client-python";
|
|
rev = "v${version}";
|
|
sha256 = "081pwd3aa7kbgxqcl1hfi2ny4iapnxkcp9ypsfslr69d0khvfc4s";
|
|
};
|
|
|
|
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 = [ maintainers.mic92 ];
|
|
};
|
|
}
|