2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
freezegun,
|
|
|
|
netifaces,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
urllib3,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
|
|
|
tenacity,
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydaikin";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.13.7";
|
|
|
|
pyproject = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fredrike";
|
|
|
|
repo = "pydaikin";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-pLr878LbflRlHzDjarwDLQFHbRZjRvlAZEqP1tfVBNA=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-16 17:04:54 +00:00
|
|
|
aiohttp
|
|
|
|
netifaces
|
|
|
|
urllib3
|
2024-09-19 14:19:46 +00:00
|
|
|
tenacity
|
2021-02-16 17:04:54 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
doCheck = false; # tests fail and upstream does not seem to run them either
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-16 17:04:54 +00:00
|
|
|
freezegun
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pydaikin" ];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Daikin HVAC appliances interface";
|
2024-09-19 14:19:46 +00:00
|
|
|
homepage = "https://github.com/fredrike/pydaikin";
|
|
|
|
changelog = "https://github.com/fredrike/pydaikin/releases/tag/v${version}";
|
2021-02-16 17:04:54 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-09-19 14:19:46 +00:00
|
|
|
mainProgram = "pydaikin";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
}
|