summary refs log tree commit diff
path: root/pkgs/development/python-modules/tesla-powerwall/default.nix
blob: a2a7b489374553eb8fc209eb1776d1be11cfe6a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 ];
  };
}