2021-02-28 20:06:24 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
|
|
|
, poetry-core
|
|
|
|
, pythonOlder
|
|
|
|
, yarl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elmax";
|
2021-02-28 23:41:25 +01:00
|
|
|
version = "0.1.1";
|
2021-02-28 20:06:24 +01:00
|
|
|
format = "pyproject";
|
2021-02-28 23:41:25 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-28 20:06:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-ecosystem";
|
|
|
|
repo = "python-elmax";
|
|
|
|
rev = version;
|
2021-02-28 23:41:25 +01:00
|
|
|
sha256 = "sha256-vDISJ/CVOjpM+GPF2TCm3/AMFTWTM0b/+ZPCpAEvNvY=";
|
2021-02-28 20:06:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
httpx
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|