2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-05-04 21:07:42 +00:00
|
|
|
, authcaptureproxy
|
2021-01-15 22:18:51 +00:00
|
|
|
, backoff
|
2021-02-13 14:23:35 +00:00
|
|
|
, beautifulsoup4
|
2021-01-15 22:18:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-02-13 14:23:35 +00:00
|
|
|
, fetchpatch
|
2021-10-11 16:52:03 +00:00
|
|
|
, httpx
|
2021-05-04 21:07:42 +00:00
|
|
|
, poetry-core
|
2021-02-22 21:28:39 +00:00
|
|
|
, pytest-asyncio
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, wrapt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "teslajsonpy";
|
2021-10-11 16:52:03 +00:00
|
|
|
version = "1.0.0";
|
2021-05-04 21:07:42 +00:00
|
|
|
format = "pyproject";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zabuldon";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-11 16:52:03 +00:00
|
|
|
sha256 = "1xkr0pmz458vh8b90ydykmgddhisay347vp48j50d1v0a55xvqsa";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2021-05-04 21:07:42 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2021-02-13 14:23:35 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
propagatedBuildInputs = [
|
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
|
2021-01-15 22:18:51 +00:00
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|