2019-05-04 14:43:49 -07:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-19 21:48:11 -07:00
|
|
|
, oauthlib
|
2019-11-03 20:26:06 -08:00
|
|
|
, requests
|
2020-06-19 21:48:11 -07:00
|
|
|
, requests_oauthlib
|
2019-05-04 14:43:49 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyatmo";
|
2020-08-16 10:31:10 -07:00
|
|
|
version = "4.0.0";
|
2019-05-04 14:43:49 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 10:31:10 -07:00
|
|
|
sha256 = "148713395d51a57f1f3102eacbb9286a859fc5c18c066238a961a1acf189b930";
|
2019-05-04 14:43:49 -07:00
|
|
|
};
|
|
|
|
|
2020-06-19 21:48:11 -07:00
|
|
|
propagatedBuildInputs = [ oauthlib requests requests_oauthlib ];
|
2019-11-03 20:26:06 -08:00
|
|
|
|
2019-05-04 14:43:49 -07:00
|
|
|
# Upstream provides no unit tests.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple API to access Netatmo weather station data";
|
|
|
|
license = licenses.mit;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/jabesq/netatmo-api-python";
|
2019-05-04 14:43:49 -07:00
|
|
|
maintainers = with maintainers; [ delroth ];
|
|
|
|
};
|
|
|
|
}
|