1{ lib
2, aiohttp
3, authcaptureproxy
4, backoff
5, beautifulsoup4
6, buildPythonPackage
7, fetchFromGitHub
8, fetchpatch
9, poetry-core
10, pytest-asyncio
11, pytestCheckHook
12, wrapt
13}:
14
15buildPythonPackage rec {
16 pname = "teslajsonpy";
17 version = "0.18.3";
18 format = "pyproject";
19
20 src = fetchFromGitHub {
21 owner = "zabuldon";
22 repo = pname;
23 rev = "v${version}";
24 sha256 = "1hdc5gm6dg1vw6qfs3z6mg2m94scrvjphj0lin6pi8n3zqj1h26k";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [
32 authcaptureproxy
33 aiohttp
34 backoff
35 beautifulsoup4
36 wrapt
37 ];
38
39 checkInputs = [
40 pytest-asyncio
41 pytestCheckHook
42 ];
43
44 pythonImportsCheck = [ "teslajsonpy" ];
45
46 meta = with lib; {
47 description = "Python library to work with Tesla API";
48 homepage = "https://github.com/zabuldon/teslajsonpy";
49 license = with licenses; [ asl20 ];
50 maintainers = with maintainers; [ fab ];
51 };
52}