2021-10-04 12:37:57 +00:00
|
|
|
{ lib
|
|
|
|
, aioconsole
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-04-29 16:46:19 +00:00
|
|
|
, setuptools
|
2021-10-04 12:37:57 +00:00
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whirlpool-sixth-sense";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.18.4";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "pyproject";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "abmantis";
|
|
|
|
repo = pname;
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-9dwkylr+aCTGw/VIY90nxq8IkqBASeEfdr5JGz7pZrc=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aioconsole
|
|
|
|
aiohttp
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|