nixpkgs/pkgs/development/python-modules/teslajsonpy/default.nix
2021-05-03 16:10:22 +02:00

52 lines
930 B
Nix

{ lib
, aiohttp
, authcaptureproxy
, backoff
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-asyncio
, pytestCheckHook
, wrapt
}:
buildPythonPackage rec {
pname = "teslajsonpy";
version = "0.18.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "zabuldon";
repo = pname;
rev = "v${version}";
sha256 = "1hdc5gm6dg1vw6qfs3z6mg2m94scrvjphj0lin6pi8n3zqj1h26k";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
authcaptureproxy
aiohttp
backoff
beautifulsoup4
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 ];
};
}