2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, requests
|
|
|
|
, websocket-client
|
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sense-energy";
|
2021-10-01 09:20:50 +00:00
|
|
|
version = "0.9.2";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scottbonline";
|
|
|
|
repo = "sense";
|
|
|
|
rev = version;
|
2021-10-01 09:20:50 +00:00
|
|
|
sha256 = "sha256-XZvx/GWpz49dsiY9pgMfX+6gUfWA8q6IpnzmCRPFHus=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
requests
|
|
|
|
websocket-client
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sense_energy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "API for the Sense Energy Monitor";
|
|
|
|
homepage = "https://github.com/scottbonline/sense";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|