depot/third_party/nixpkgs/pkgs/development/python-modules/sense-energy/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

42 lines
773 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, requests
, websocket-client
, websockets
}:
buildPythonPackage rec {
pname = "sense-energy";
version = "0.10.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "scottbonline";
repo = "sense";
rev = version;
hash = "sha256-0D0AagmLozF5nLbdcmtE9q65vG2WxWv+hZLTnjmmfEY=";
};
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 ];
};
}