1{
2 lib,
3 aiohttp,
4 aresponses,
5 backoff,
6 buildPythonPackage,
7 fetchFromGitHub,
8 poetry-core,
9 pytest-asyncio,
10 pytestCheckHook,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "tesla-wall-connector";
16 version = "1.0.2";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "einarhauks";
23 repo = "tesla-wall-connector";
24 rev = version;
25 hash = "sha256-GblKXWV9h37E3bxNsx17hEe0uDm8ahzJUx8wiE+Vc38=";
26 };
27
28 nativeBuildInputs = [ poetry-core ];
29
30 propagatedBuildInputs = [
31 aiohttp
32 backoff
33 ];
34
35 nativeCheckInputs = [
36 aresponses
37 pytest-asyncio
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "tesla_wall_connector" ];
42
43 meta = with lib; {
44 description = "Library for communicating with a Tesla Wall Connector";
45 homepage = "https://github.com/einarhauks/tesla-wall-connector";
46 license = with licenses; [ mit ];
47 maintainers = with maintainers; [ fab ];
48 };
49}