python3Packages.tesla-powerwall: init at 0.3.17
This commit is contained in:
parent
1d370bd073
commit
8e8f4be516
2 changed files with 44 additions and 0 deletions
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 ];
|
||||
};
|
||||
}
|
|
@ -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 a new issue