2021-02-24 18:30:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cachetools
|
|
|
|
, paho-mqtt
|
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
, requests_oauthlib
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysmappee";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = "0.2.18";
|
2021-02-24 18:30:23 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smappee";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-04-05 15:23:46 +00:00
|
|
|
sha256 = "sha256-DnRtKr8aGZ6rcN/wTpcFNaI+EJm07nObfWyBpLkQF38=";
|
2021-02-24 18:30:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachetools
|
|
|
|
paho-mqtt
|
|
|
|
pytz
|
|
|
|
requests
|
|
|
|
requests_oauthlib
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pysmappee" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Library for the Smappee dev API";
|
|
|
|
homepage = "https://github.com/smappee/pysmappee";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|