Merge pull request #100091 from mweinelt/pyatmo
python3Packages.pyatmo: 4.0.0 -> 4.1.0
This commit is contained in:
commit
73155864fa
|
@ -1,24 +1,36 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
, oauthlib
|
, oauthlib
|
||||||
, requests
|
, requests
|
||||||
, requests_oauthlib
|
, requests_oauthlib
|
||||||
|
, freezegun
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests-mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyatmo";
|
pname = "pyatmo";
|
||||||
version = "4.0.0";
|
version = "4.1.0";
|
||||||
|
disabled = pythonOlder "3.5"; # uses type hints
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "jabesq";
|
||||||
sha256 = "148713395d51a57f1f3102eacbb9286a859fc5c18c066238a961a1acf189b930";
|
repo = "netatmo-api-python";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0x3xq6ni9rl5k3vi0ydqafdzvza785ycnlgyikgqbkppbh3j33ig";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ oauthlib requests requests_oauthlib ];
|
propagatedBuildInputs = [ oauthlib requests requests_oauthlib ];
|
||||||
|
|
||||||
# Upstream provides no unit tests.
|
checkInputs = [
|
||||||
doCheck = false;
|
freezegun
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pyatmo" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple API to access Netatmo weather station data";
|
description = "Simple API to access Netatmo weather station data";
|
||||||
|
|
Loading…
Reference in New Issue