nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 53 lines 926 B view raw
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 13}: 14 15buildPythonPackage rec { 16 pname = "influxdb-client"; 17 version = "1.27.0"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "influxdata"; 24 repo = "influxdb-client-python"; 25 rev = "v${version}"; 26 hash = "sha256-M0Ob3HjIhlYSIWXGM54NXiEMSCmZzNLLNsCRyxAcjMc="; 27 }; 28 29 propagatedBuildInputs = [ 30 rx 31 certifi 32 six 33 python-dateutil 34 setuptools 35 urllib3 36 ciso8601 37 pytz 38 ]; 39 40 # requires influxdb server 41 doCheck = false; 42 43 pythonImportsCheck = [ 44 "influxdb_client" 45 ]; 46 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 = with maintainers; [ mic92 ]; 52 }; 53}