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
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2021-12-19 01:06:50 +00:00
|
|
|
, voluptuous
|
|
|
|
, websocket-client
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hahomematic";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "2022.12.9";
|
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-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-Pmgdu22pZOciHveyXY212QPMMPdwvYCc9HshSqBOunE=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/danielperna84/hahomematic/releases/tag/${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|