nixpkgs/pkgs/development/python-modules/influxdb/default.nix

65 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, dateutil
2021-02-27 10:17:20 +00:00
, fetchFromGitHub
, fetchpatch
, mock
, msgpack
, nose
, pandas
, pytestCheckHook
, pytz
2021-02-27 10:17:20 +00:00
, requests
, requests-mock
, six
}:
buildPythonPackage rec {
pname = "influxdb";
2020-06-06 07:47:13 +01:00
version = "5.3.0";
2021-02-27 10:17:20 +00:00
src = fetchFromGitHub {
owner = "influxdata";
repo = "influxdb-python";
rev = "v${version}";
sha256 = "1jfkf53jcf8lcq98qc0bw5d1d0yp3558mh8l2dqc9jlsm0smigjs";
};
2021-02-27 10:17:20 +00:00
propagatedBuildInputs = [
requests
dateutil
pytz
six
msgpack
];
checkInputs = [
pytestCheckHook
requests-mock
mock
nose
pandas
];
2020-06-20 06:05:36 +01:00
patches = [
(fetchpatch {
url = "https://github.com/influxdata/influxdb-python/commit/cc41e290f690c4eb67f75c98fa9f027bdb6eb16b.patch";
sha256 = "1fb9qrq1kp24pixjwvzhdy67z3h0wnj92aj0jw0a25fd0rdxdvg4";
})
];
2021-02-27 10:17:20 +00:00
disabledTests = [
# Disable failing test
"test_write_points_from_dataframe_with_tags_and_nan_json"
];
pythonImportsCheck = [ "influxdb" ];
meta = with lib; {
description = "Python client for InfluxDB";
homepage = "https://github.com/influxdb/influxdb-python";
license = licenses.mit;
2021-02-27 10:17:20 +00:00
maintainers = with maintainers; [ fab ];
};
}