2021-01-10 22:25:37 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, backoff
|
2021-02-07 09:13:38 +00:00
|
|
|
, beautifulsoup4
|
2021-01-10 22:25:37 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-02-07 09:13:38 +00:00
|
|
|
, fetchpatch
|
2021-02-20 00:02:53 +00:00
|
|
|
, pytest-asyncio
|
2021-01-10 22:25:37 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, wrapt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "teslajsonpy";
|
2021-02-07 09:13:38 +00:00
|
|
|
version = "0.11.5";
|
2021-01-10 22:25:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zabuldon";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-07 09:13:38 +00:00
|
|
|
sha256 = "sha256-s0IZ1UNldYddaR3zJoYS6ey8Kjxd1fr4fOwf0gNNbow=";
|
2021-01-10 22:25:37 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:13:38 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "dont-use-dummpy-module-bs4.patch";
|
|
|
|
url = "https://github.com/zabuldon/teslajsonpy/pull/138/commits/f5a788e47d8338c8ebb06d954f802ba1ec614db3.patch";
|
|
|
|
sha256 = "0rws7fhxmca8d5w0bkygx8scvzah3yvb3yfhn05qmp73mn3pmcb3";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-10 22:25:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
backoff
|
2021-02-07 09:13:38 +00:00
|
|
|
beautifulsoup4
|
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-01-10 22:25:37 +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 ];
|
|
|
|
};
|
|
|
|
}
|