88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
52 lines
930 B
Nix
52 lines
930 B
Nix
{ lib
|
|
, aiohttp
|
|
, authcaptureproxy
|
|
, backoff
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, wrapt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "teslajsonpy";
|
|
version = "0.21.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zabuldon";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1rwp3aag21hdkis2wx680ckja0203grm7naldaj8d2kpy4697m54";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
authcaptureproxy
|
|
aiohttp
|
|
backoff
|
|
beautifulsoup4
|
|
wrapt
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "teslajsonpy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to work with Tesla API";
|
|
homepage = "https://github.com/zabuldon/teslajsonpy";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|