Merge pull request #114545 from fabaff/meta-simplekml

python3Packages.simplekml: update meta; python3Packages.influxdb: enable tests
This commit is contained in:
Fabian Affolter 2021-03-21 10:05:49 +01:00 committed by GitHub
commit b925c12ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 16 deletions

View File

@ -1,23 +1,46 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, dateutil
, pytz
, six
, msgpack
, fetchFromGitHub
, fetchpatch
, mock
, msgpack
, nose
, pandas
, pytestCheckHook
, pytz
, requests
, requests-mock
, six
}:
buildPythonPackage rec {
pname = "influxdb";
version = "5.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "9bcaafd57ac152b9824ab12ed19f204206ef5df8af68404770554c5b55b475f6";
src = fetchFromGitHub {
owner = "influxdata";
repo = "influxdb-python";
rev = "v${version}";
sha256 = "1jfkf53jcf8lcq98qc0bw5d1d0yp3558mh8l2dqc9jlsm0smigjs";
};
propagatedBuildInputs = [
requests
dateutil
pytz
six
msgpack
];
checkInputs = [
pytestCheckHook
requests-mock
mock
nose
pandas
];
patches = [
(fetchpatch {
url = "https://github.com/influxdata/influxdb-python/commit/cc41e290f690c4eb67f75c98fa9f027bdb6eb16b.patch";
@ -25,14 +48,17 @@ buildPythonPackage rec {
})
];
# ImportError: No module named tests
doCheck = false;
propagatedBuildInputs = [ requests dateutil pytz six msgpack ];
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;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,4 +1,7 @@
{ lib , buildPythonPackage , fetchPypi }:
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "simplekml";
@ -9,11 +12,13 @@ buildPythonPackage rec {
sha256 = "17h48r1dsfz4g9xcxh1xq85h20hiz7qzzymc1gla96bj2wh4wyv5";
};
doCheck = false; # no tests are defined in 1.3.5
# no tests are defined in 1.3.5
doCheck = false;
pythonImportsCheck = [ "simplekml" ];
meta = with lib; {
description = "Generate KML with as little effort as possible";
homepage = "https://readthedocs.org/projects/simplekml/";
description = "Python package to generate KML";
homepage = "https://simplekml.readthedocs.io/";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ rvolosatovs ];
};