2019-05-04 23:43:49 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-20 06:48:11 +02:00
|
|
|
, oauthlib
|
2019-11-04 05:26:06 +01:00
|
|
|
, requests
|
2020-06-20 06:48:11 +02:00
|
|
|
, requests_oauthlib
|
2019-05-04 23:43:49 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyatmo";
|
2020-06-06 08:47:23 +02:00
|
|
|
version = "3.3.1";
|
2019-05-04 23:43:49 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 08:47:23 +02:00
|
|
|
sha256 = "9949338833a27b6c3251b52bf70b73aa99c43c56153541338cb63001afafdd1e";
|
2019-05-04 23:43:49 +02:00
|
|
|
};
|
|
|
|
|
2020-06-20 06:48:11 +02:00
|
|
|
propagatedBuildInputs = [ oauthlib requests requests_oauthlib ];
|
2019-11-04 05:26:06 +01:00
|
|
|
|
2019-05-04 23:43:49 +02:00
|
|
|
# Upstream provides no unit tests.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple API to access Netatmo weather station data";
|
|
|
|
license = licenses.mit;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jabesq/netatmo-api-python";
|
2019-05-04 23:43:49 +02:00
|
|
|
maintainers = with maintainers; [ delroth ];
|
|
|
|
};
|
|
|
|
}
|