mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
Merge pull request #127351 from dotlambda/sense-energy-init
This commit is contained in:
commit
9f78f858f5
39
pkgs/development/python-modules/sense-energy/default.nix
Normal file
39
pkgs/development/python-modules/sense-energy/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 ];
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue