8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
58 lines
986 B
Nix
58 lines
986 B
Nix
{ lib
|
|
, aiohttp
|
|
, authcaptureproxy
|
|
, backoff
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, wrapt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "teslajsonpy";
|
|
version = "1.9.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zabuldon";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Q/ltNdr2Huvfj1RmKFopJbaR4FSM7ziWadmDKPS26vc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
authcaptureproxy
|
|
aiohttp
|
|
backoff
|
|
beautifulsoup4
|
|
httpx
|
|
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 ];
|
|
};
|
|
}
|