depot/third_party/nixpkgs/pkgs/development/python-modules/tesla-wall-connector/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

54 lines
964 B
Nix

{ lib
, aiohttp
, aioresponses
, aresponses
, backoff
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "tesla-wall-connector";
version = "1.0.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "einarhauks";
repo = pname;
rev = version;
sha256 = "sha256-JBtlGd9aHY8ikhpJ5v7ZcNu3BfLdBmOBZCMa6C0s6gE=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
backoff
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"tesla_wall_connector"
];
meta = with lib; {
description = "Python library for communicating with a Tesla Wall Connector";
homepage = "https://github.com/einarhauks/tesla-wall-connector";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}