2021-02-28 19:06:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
|
|
|
, poetry-core
|
|
|
|
, pythonOlder
|
2021-04-27 16:52:20 +01:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-httpx
|
|
|
|
, pytestCheckHook
|
2021-02-28 19:06:24 +00:00
|
|
|
, yarl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elmax";
|
2021-09-01 12:07:51 +01:00
|
|
|
version = "0.1.3";
|
2021-02-28 19:06:24 +00:00
|
|
|
format = "pyproject";
|
2021-02-28 22:41:25 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-28 19:06:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-ecosystem";
|
|
|
|
repo = "python-elmax";
|
|
|
|
rev = version;
|
2021-09-01 12:07:51 +01:00
|
|
|
sha256 = "sha256-OiVPjWqQw1u0OL6/uYlT+FP2XDh7l3OZyVtQfycHICI=";
|
2021-02-28 19:06:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
httpx
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
2021-04-27 16:52:20 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpx
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-02-28 19:06:24 +00:00
|
|
|
pythonImportsCheck = [ "elmax" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API client for the Elmax Cloud services";
|
|
|
|
homepage = "https://github.com/home-assistant-ecosystem/python-elmax";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|