mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
Merge pull request #173083 from dotlambda/tesla-powerwall-init
home-assistant: support powerwall component
This commit is contained in:
commit
81626bf4a8
42
pkgs/development/python-modules/tesla-powerwall/default.nix
Normal file
42
pkgs/development/python-modules/tesla-powerwall/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tesla-powerwall";
|
||||
version = "0.3.17";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "tesla_powerwall";
|
||||
inherit version;
|
||||
sha256 = "09351e408e8e3cc03414944c1a487ef2178300829559e80835026acb84330cfd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests/unit"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "tesla_powerwall" ];
|
||||
|
||||
meta = {
|
||||
description = "API for Tesla Powerwall";
|
||||
homepage = "https://github.com/jrester/tesla_powerwall";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -2032,7 +2032,8 @@
|
||||
poolsense
|
||||
];
|
||||
"powerwall" = ps: with ps; [
|
||||
]; # missing inputs: tesla-powerwall
|
||||
tesla-powerwall
|
||||
];
|
||||
"profiler" = ps: with ps; [
|
||||
guppy3
|
||||
objgraph
|
||||
@ -3557,6 +3558,7 @@
|
||||
"plugwise"
|
||||
"point"
|
||||
"poolsense"
|
||||
"powerwall"
|
||||
"profiler"
|
||||
"prometheus"
|
||||
"prosegur"
|
||||
|
@ -10189,6 +10189,8 @@ in {
|
||||
|
||||
tern = callPackage ../development/python-modules/tern { };
|
||||
|
||||
tesla-powerwall = callPackage ../development/python-modules/tesla-powerwall { };
|
||||
|
||||
tesla-wall-connector = callPackage ../development/python-modules/tesla-wall-connector { };
|
||||
|
||||
teslajsonpy = callPackage ../development/python-modules/teslajsonpy { };
|
||||
|
Loading…
Reference in New Issue
Block a user