depot/third_party/nixpkgs/pkgs/development/python-modules/teslajsonpy/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

60 lines
1.1 KiB
Nix

{
lib,
aiohttp,
authcaptureproxy,
backoff,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
httpx,
orjson,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
tenacity,
wrapt,
}:
buildPythonPackage rec {
pname = "teslajsonpy";
version = "3.10.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zabuldon";
repo = "teslajsonpy";
rev = "refs/tags/v${version}";
hash = "sha256-g5csh014gXdYJ28cBn0Frk5g3zFuZ9ufrypcLcNPwg0=";
};
build-system = [ poetry-core ];
dependencies = [
authcaptureproxy
aiohttp
backoff
beautifulsoup4
httpx
orjson
tenacity
wrapt
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "teslajsonpy" ];
meta = with lib; {
description = "Python library to work with Tesla API";
homepage = "https://github.com/zabuldon/teslajsonpy";
changelog = "https://github.com/zabuldon/teslajsonpy/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}