python3.pkgs.influxdb-client: init at 1.8.0

This commit is contained in:
Jörg Thalheim 2020-07-06 23:29:47 +01:00 committed by Martin Weinelt
parent 887a51e642
commit 47eb4aca59
No known key found for this signature in database
GPG Key ID: BD4AA0528F63F17E
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, rx
, certifi
, six
, python-dateutil
, setuptools
, urllib3
, ciso8601
, pytz
, pythonOlder
}:
buildPythonPackage rec {
pname = "influxdb-client";
version = "1.8.0";
disabled = pythonOlder "3.6"; # requires python version >=3.6
src = fetchFromGitHub {
owner = "influxdata";
repo = "influxdb-client-python";
rev = "v${version}";
sha256 = "0gf0fjkd10yn1bb86rfapnd5diraivshn9mhzqxaxwlfah45q187";
};
# makes test not reproducible
postPatch = ''
sed -i -e '/randomize/d' test-requirements.txt
'';
propagatedBuildInputs = [
rx
certifi
six
python-dateutil
setuptools
urllib3
ciso8601
pytz
];
# requires influxdb server
doCheck = false;
meta = with lib; {
description = "InfluxDB 2.0 Python client library";
homepage = "https://github.com/influxdata/influxdb-client-python";
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}

View File

@ -695,6 +695,9 @@ in {
parver = callPackage ../development/python-modules/parver { };
arpeggio = callPackage ../development/python-modules/arpeggio { };
influxdb-client = callPackage ../development/python-modules/influxdb-client { };
invoke = callPackage ../development/python-modules/invoke { };
distorm3 = callPackage ../development/python-modules/distorm3 { };