2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-httpx,
|
|
|
|
pytestCheckHook,
|
|
|
|
yarl,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elmax";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.1.5";
|
2021-03-09 03:18:52 +00:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-ecosystem";
|
|
|
|
repo = "python-elmax";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-EcYEpYv+EwwEfW8Sy7aQjFAPpmsA6qVbmlwrPdxdnEw=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
httpx
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpx
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
pythonImportsCheck = [ "elmax" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API client for the Elmax Cloud services";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "poetry-template";
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "https://github.com/home-assistant-ecosystem/python-elmax";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|