1{ lib
2, aiohttp
3, aioresponses
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 = pname;
24 rev = version;
25 hash = "sha256-GblKXWV9h37E3bxNsx17hEe0uDm8ahzJUx8wiE+Vc38=";
26 };
27
28 nativeBuildInputs = [
29 poetry-core
30 ];
31
32 propagatedBuildInputs = [
33 aiohttp
34 backoff
35 ];
36
37 nativeCheckInputs = [
38 aresponses
39 pytest-asyncio
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [
44 "tesla_wall_connector"
45 ];
46
47 meta = with lib; {
48 description = "Library for communicating with a Tesla Wall Connector";
49 homepage = "https://github.com/einarhauks/tesla-wall-connector";
50 license = with licenses; [ mit ];
51 maintainers = with maintainers; [ fab ];
52 };
53}