2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aioconsole,
|
|
|
|
aiohttp,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
websockets,
|
2021-10-04 12:37:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whirlpool-sixth-sense";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.18.9";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-10-04 12:37:57 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "abmantis";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "whirlpool-sixth-sense";
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-aDvUV83o/yKx15kenDGng5xh3LECLVlLWJlVe/y+1Co=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-10-04 12:37:57 +00:00
|
|
|
aioconsole
|
|
|
|
aiohttp
|
2024-04-21 15:54:59 +00:00
|
|
|
async-timeout
|
2021-10-04 12:37:57 +00:00
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-04 12:37:57 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
# https://github.com/abmantis/whirlpool-sixth-sense/issues/15
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
pythonImportsCheck = [ "whirlpool" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for Whirlpool 6th Sense appliances";
|
|
|
|
homepage = "https://github.com/abmantis/whirlpool-sixth-sense/";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|