forked from mirrors/nixpkgs
40 lines
743 B
Nix
40 lines
743 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, requests
|
|
, websocket-client
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sense-energy";
|
|
version = "0.9.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scottbonline";
|
|
repo = "sense";
|
|
rev = version;
|
|
sha256 = "sha256-XZvx/GWpz49dsiY9pgMfX+6gUfWA8q6IpnzmCRPFHus=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|