ch9344: 2.0 -> 0-unstable-2024-11-15 (#354536)
[NixPkgs.git] / pkgs / development / python-modules / influxdb-client / default.nix
blob712be1f3410a9f806a6833c499725f3cbdb85d50
2   lib,
3   aiohttp,
4   aiocsv,
5   buildPythonPackage,
6   certifi,
7   ciso8601,
8   fetchFromGitHub,
9   numpy,
10   pandas,
11   python-dateutil,
12   pythonOlder,
13   reactivex,
14   setuptools,
15   urllib3,
18 buildPythonPackage rec {
19   pname = "influxdb-client";
20   version = "1.47.0";
21   pyproject = true;
23   disabled = pythonOlder "3.7";
25   src = fetchFromGitHub {
26     owner = "influxdata";
27     repo = "influxdb-client-python";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-1QWy+mdVttowdbIBmtW6gYwkJ4p9sL0D+DxsHk3xgvc=";
30   };
32   build-system = [ setuptools ];
34   dependencies = [
35     certifi
36     python-dateutil
37     reactivex
38     setuptools
39     urllib3
40   ];
42   optional-dependencies = {
43     async = [
44       aiocsv
45       aiohttp
46     ];
47     ciso = [ ciso8601 ];
48     extra = [
49       numpy
50       pandas
51     ];
52   };
54   # Requires influxdb server
55   doCheck = false;
57   pythonImportsCheck = [ "influxdb_client" ];
59   meta = with lib; {
60     description = "InfluxDB client library";
61     homepage = "https://github.com/influxdata/influxdb-client-python";
62     changelog = "https://github.com/influxdata/influxdb-client-python/blob/v${version}/CHANGELOG.md";
63     license = licenses.mit;
64     maintainers = with maintainers; [ mic92 ];
65   };