2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
2022-01-07 04:07:37 +00:00
|
|
|
, aiohttp
|
2021-12-19 01:06:50 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-01-07 04:07:37 +00:00
|
|
|
, pydevccu
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytestCheckHook
|
2022-01-26 04:04:25 +00:00
|
|
|
, python-slugify
|
2021-12-19 01:06:50 +00:00
|
|
|
, pythonOlder
|
|
|
|
, voluptuous
|
|
|
|
, websocket-client
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hahomematic";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "2022.8.10";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danielperna84";
|
|
|
|
repo = pname;
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-JyHIX0G6REIRJDxSrGwZr0mMvAE0R1/zkullh/SXAXA=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-01-26 04:04:25 +00:00
|
|
|
python-slugify
|
2021-12-19 01:06:50 +00:00
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
checkInputs = [
|
|
|
|
pydevccu
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
# Starting with 0.30 the tests are broken, check with the next major release
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"hahomematic"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to interact with HomeMatic devices";
|
|
|
|
homepage = "https://github.com/danielperna84/hahomematic";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|