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 { 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 ];
}; };
} }

View File

@ -1,4 +1,7 @@
{ lib , buildPythonPackage , fetchPypi }: { lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "simplekml"; pname = "simplekml";
@ -9,11 +12,13 @@ buildPythonPackage rec {
sha256 = "17h48r1dsfz4g9xcxh1xq85h20hiz7qzzymc1gla96bj2wh4wyv5"; 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; { meta = with lib; {
description = "Generate KML with as little effort as possible"; description = "Python package to generate KML";
homepage = "https://readthedocs.org/projects/simplekml/"; homepage = "https://simplekml.readthedocs.io/";
license = licenses.lgpl3Plus; license = licenses.lgpl3Plus;
maintainers = with maintainers; [ rvolosatovs ]; maintainers = with maintainers; [ rvolosatovs ];
}; };