depot/third_party/nixpkgs/pkgs/development/python-modules/teslajsonpy/default.nix

55 lines
947 B
Nix
Raw Normal View History

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