depot/third_party/nixpkgs/pkgs/development/python-modules/tesla-powerwall/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

42 lines
755 B
Nix

{ 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 ];
};
}