depot/third_party/nixpkgs/pkgs/development/python-modules/sense-energy/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

39 lines
744 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, requests
, websocket-client
, websockets
}:
buildPythonPackage rec {
pname = "sense-energy";
version = "0.9.0";
src = fetchFromGitHub {
owner = "scottbonline";
repo = "sense";
rev = version;
sha256 = "1lbarsa9wpm7hnhgf2g253w0gs80cn989dnj4aqmic57x5isikhz";
};
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 ];
};
}