2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
authcaptureproxy,
|
|
|
|
backoff,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
orjson,
|
|
|
|
poetry-core,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
tenacity,
|
|
|
|
wrapt,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "teslajsonpy";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "3.12.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zabuldon";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "teslajsonpy";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-oIuIE5N/cHCEP3azMrwNiknP4q3rDxg4BiFQiJqcFkc=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-05-04 21:07:42 +00:00
|
|
|
authcaptureproxy
|
2021-01-15 22:18:51 +00:00
|
|
|
aiohttp
|
|
|
|
backoff
|
2021-02-13 14:23:35 +00:00
|
|
|
beautifulsoup4
|
2021-10-11 16:52:03 +00:00
|
|
|
httpx
|
2023-03-24 00:07:29 +00:00
|
|
|
orjson
|
2023-01-11 07:51:40 +00:00
|
|
|
tenacity
|
2021-01-15 22:18:51 +00:00
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-22 21:28:39 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "teslajsonpy" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to work with Tesla API";
|
|
|
|
homepage = "https://github.com/zabuldon/teslajsonpy";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/zabuldon/teslajsonpy/releases/tag/v${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|