python3Packages.influxdb: enable tests
This commit is contained in:
parent
bd91d4fb48
commit
b4e58d9832
@ -1,23 +1,46 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, requests
|
|
||||||
, dateutil
|
, dateutil
|
||||||
, pytz
|
, fetchFromGitHub
|
||||||
, six
|
|
||||||
, msgpack
|
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
, mock
|
||||||
|
, msgpack
|
||||||
|
, nose
|
||||||
|
, pandas
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytz
|
||||||
|
, requests
|
||||||
|
, requests-mock
|
||||||
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "influxdb";
|
pname = "influxdb";
|
||||||
version = "5.3.0";
|
version = "5.3.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "influxdata";
|
||||||
sha256 = "9bcaafd57ac152b9824ab12ed19f204206ef5df8af68404770554c5b55b475f6";
|
repo = "influxdb-python";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1jfkf53jcf8lcq98qc0bw5d1d0yp3558mh8l2dqc9jlsm0smigjs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
dateutil
|
||||||
|
pytz
|
||||||
|
six
|
||||||
|
msgpack
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
mock
|
||||||
|
nose
|
||||||
|
pandas
|
||||||
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/influxdata/influxdb-python/commit/cc41e290f690c4eb67f75c98fa9f027bdb6eb16b.patch";
|
url = "https://github.com/influxdata/influxdb-python/commit/cc41e290f690c4eb67f75c98fa9f027bdb6eb16b.patch";
|
||||||
@ -25,14 +48,17 @@ buildPythonPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# ImportError: No module named tests
|
disabledTests = [
|
||||||
doCheck = false;
|
# Disable failing test
|
||||||
propagatedBuildInputs = [ requests dateutil pytz six msgpack ];
|
"test_write_points_from_dataframe_with_tags_and_nan_json"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "influxdb" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python client for InfluxDB";
|
description = "Python client for InfluxDB";
|
||||||
homepage = "https://github.com/influxdb/influxdb-python";
|
homepage = "https://github.com/influxdb/influxdb-python";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user