Merge pull request #127351 from dotlambda/sense-energy-init

This commit is contained in:
Sandro 2021-06-18 17:12:08 +02:00 committed by GitHub
commit 9f78f858f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1,39 @@
{ 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 ];
};
}

View file

@ -222,7 +222,7 @@
"emoncms_history" = ps: with ps; [ ];
"emonitor" = ps: with ps; [ aioemonitor ];
"emulated_hue" = ps: with ps; [ aiohttp-cors ];
"emulated_kasa" = ps: with ps; [ ]; # missing inputs: sense_energy
"emulated_kasa" = ps: with ps; [ sense-energy ];
"emulated_roku" = ps: with ps; [ ]; # missing inputs: emulated_roku
"enigma2" = ps: with ps; [ openwebifpy ];
"enocean" = ps: with ps; [ ]; # missing inputs: enocean
@ -733,7 +733,7 @@
"search" = ps: with ps; [ aiohttp-cors ];
"season" = ps: with ps; [ ephem ];
"sendgrid" = ps: with ps; [ sendgrid ];
"sense" = ps: with ps; [ ]; # missing inputs: sense_energy
"sense" = ps: with ps; [ sense-energy ];
"sensehat" = ps: with ps; [ ]; # missing inputs: sense-hat
"sensibo" = ps: with ps; [ ]; # missing inputs: pysensibo
"sensor" = ps: with ps; [ sqlalchemy ];

View file

@ -371,6 +371,7 @@ in with py.pkgs; buildPythonApplication rec {
"elgato"
"emonitor"
"emulated_hue"
"emulated_kasa"
"enphase_envoy"
"esphome"
"everlights"
@ -596,6 +597,7 @@ in with py.pkgs; buildPythonApplication rec {
"script"
"search"
"season"
"sense"
"sensor"
"sentry"
"sharkiq"

View file

@ -7722,6 +7722,8 @@ in {
sendgrid = callPackage ../development/python-modules/sendgrid { };
sense-energy = callPackage ../development/python-modules/sense-energy { };
sentencepiece = callPackage ../development/python-modules/sentencepiece {
inherit (pkgs) sentencepiece;
};