Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / influxdb-client / default.nix
blob5bc9ba395063ce19cc898581ec874a37dabb6127
1 { lib
2 , aiohttp
3 , aiocsv
4 , buildPythonPackage
5 , certifi
6 , ciso8601
7 , fetchFromGitHub
8 , numpy
9 , pandas
10 , python-dateutil
11 , pythonOlder
12 , reactivex
13 , setuptools
14 , urllib3
17 buildPythonPackage rec {
18   pname = "influxdb-client";
19   version = "1.38.0";
20   format = "setuptools";
22   disabled = pythonOlder "3.7";
24   src = fetchFromGitHub {
25     owner = "influxdata";
26     repo = "influxdb-client-python";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-oE0RPryuUJcy6HN3V2XIxipGYU41xrYMC7b0sGRfay8=";
29   };
31   propagatedBuildInputs = [
32     certifi
33     python-dateutil
34     reactivex
35     setuptools
36     urllib3
37   ];
39   passthru.optional-dependencies = {
40     async = [
41       aiocsv
42       aiohttp
43     ];
44     ciso = [
45       ciso8601
46     ];
47     extra = [
48       numpy
49       pandas
50     ];
51   };
53   # Requires influxdb server
54   doCheck = false;
56   pythonImportsCheck = [
57     "influxdb_client"
58   ];
60   meta = with lib; {
61     description = "InfluxDB client library";
62     homepage = "https://github.com/influxdata/influxdb-client-python";
63     changelog = "https://github.com/influxdata/influxdb-client-python/blob/v${version}/CHANGELOG.md";
64     license = licenses.mit;
65     maintainers = with maintainers; [ mic92 ];
66   };