depot/third_party/nixpkgs/pkgs/development/python-modules/tesla-wall-connector/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

47 lines
901 B
Nix

{ lib
, aiohttp
, backoff
, aioresponses
, buildPythonPackage
, fetchPypi
, pytest-aiohttp
, pytestCheckHook
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "tesla-wall-connector";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "PVgM6tC8jy/tXytkAVC0Y4Oatap5YFA3vpkUgAdyTxM=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
backoff
];
# https://github.com/einarhauks/tesla-wall-connector/issues/1
doCheck = false;
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 ];
};
}