2021-01-10 22:25:37 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-05-02 02:25:32 +01:00
|
|
|
, authcaptureproxy
|
2021-01-10 22:25:37 +00:00
|
|
|
, backoff
|
2021-02-07 09:13:38 +00:00
|
|
|
, beautifulsoup4
|
2021-01-10 22:25:37 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-10-10 09:44:50 +01:00
|
|
|
, httpx
|
2021-05-02 02:25:32 +01:00
|
|
|
, poetry-core
|
2021-02-20 00:02:53 +00:00
|
|
|
, pytest-asyncio
|
2021-01-10 22:25:37 +00:00
|
|
|
, pytestCheckHook
|
2021-10-18 07:29:47 +01:00
|
|
|
, pythonOlder
|
2021-01-10 22:25:37 +00:00
|
|
|
, wrapt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "teslajsonpy";
|
2022-04-06 04:40:47 +01:00
|
|
|
version = "2.0.1";
|
2021-05-02 02:25:32 +01:00
|
|
|
format = "pyproject";
|
2021-01-10 22:25:37 +00:00
|
|
|
|
2021-10-18 07:29:47 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-01-10 22:25:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zabuldon";
|
|
|
|
repo = pname;
|
2022-04-06 04:40:47 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-cplx6Zhqc/ft7l9dy1ian3zzgDqEfpO/0AF7ErX4wqk=";
|
2021-01-10 22:25:37 +00:00
|
|
|
};
|
|
|
|
|
2021-05-02 02:25:32 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2021-02-07 09:13:38 +00:00
|
|
|
];
|
|
|
|
|
2021-01-10 22:25:37 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-02 02:25:32 +01:00
|
|
|
authcaptureproxy
|
2021-01-10 22:25:37 +00:00
|
|
|
aiohttp
|
|
|
|
backoff
|
2021-02-07 09:13:38 +00:00
|
|
|
beautifulsoup4
|
2021-10-10 09:44:50 +01:00
|
|
|
httpx
|
2021-01-10 22:25:37 +00:00
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
2021-02-20 00:02:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2021-01-26 10:01:52 +00:00
|
|
|
];
|
2021-02-20 00:02:53 +00:00
|
|
|
|
2021-10-23 15:43:24 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"teslajsonpy"
|
|
|
|
];
|
2021-01-10 22:25:37 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|