3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/teslajsonpy/default.nix
2022-01-20 20:47:15 +00:00

59 lines
987 B
Nix

{ lib
, aiohttp
, authcaptureproxy
, backoff
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, httpx
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, wrapt
}:
buildPythonPackage rec {
pname = "teslajsonpy";
version = "1.6.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "zabuldon";
repo = pname;
rev = "v${version}";
sha256 = "1jxdfk2ka131spnfkl35lnzvkgwgsbs5xl3hsjj03q1nfjcqvx9l";
};
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 ];
};
}