Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / influxdb-client / default.nix
blob82153f4b3d9bfcb2acc76a181516fe40716997df
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , rx
5 , certifi
6 , six
7 , python-dateutil
8 , setuptools
9 , urllib3
10 , ciso8601
11 , pytz
12 , pythonOlder
15 buildPythonPackage rec {
16   pname = "influxdb-client";
17   version = "1.15.0";
19   disabled = pythonOlder "3.6"; # requires python version >=3.6
21   src = fetchFromGitHub {
22     owner = "influxdata";
23     repo = "influxdb-client-python";
24     rev = "v${version}";
25     sha256 = "1b2xh78v965rgafyj7cdbjm2p96d74f7ifsqllc7242n9wv3k53q";
26   };
28   # makes test not reproducible
29   postPatch = ''
30     sed -i -e '/randomize/d' test-requirements.txt
31   '';
33   propagatedBuildInputs = [
34     rx
35     certifi
36     six
37     python-dateutil
38     setuptools
39     urllib3
40     ciso8601
41     pytz
42   ];
44   # requires influxdb server
45   doCheck = false;
47   meta = with lib; {
48     description = "InfluxDB 2.0 Python client library";
49     homepage = "https://github.com/influxdata/influxdb-client-python";
50     license = licenses.mit;
51     maintainers = [ maintainers.mic92 ];
52   };