1{
2 lib,
3 aiohttp,
4 authcaptureproxy,
5 backoff,
6 beautifulsoup4,
7 buildPythonPackage,
8 fetchFromGitHub,
9 httpx,
10 orjson,
11 poetry-core,
12 pytest-asyncio,
13 pytestCheckHook,
14 pythonOlder,
15 tenacity,
16 wrapt,
17}:
18
19buildPythonPackage rec {
20 pname = "teslajsonpy";
21 version = "3.13.2";
22 pyproject = true;
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchFromGitHub {
27 owner = "zabuldon";
28 repo = "teslajsonpy";
29 tag = "v${version}";
30 hash = "sha256-tlw5m8RsBGwVx3h+JlY9rwINMDR6csAt2XefK6AaQWE=";
31 };
32
33 build-system = [ poetry-core ];
34
35 dependencies = [
36 authcaptureproxy
37 aiohttp
38 backoff
39 beautifulsoup4
40 httpx
41 orjson
42 tenacity
43 wrapt
44 ];
45
46 nativeCheckInputs = [
47 pytest-asyncio
48 pytestCheckHook
49 ];
50
51 pythonImportsCheck = [ "teslajsonpy" ];
52
53 meta = with lib; {
54 description = "Python library to work with Tesla API";
55 homepage = "https://github.com/zabuldon/teslajsonpy";
56 changelog = "https://github.com/zabuldon/teslajsonpy/releases/tag/${src.tag}";
57 license = with licenses; [ asl20 ];
58 maintainers = with maintainers; [ fab ];
59 };
60}