587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aioconsole,
|
|
aiohttp,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
websockets,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whirlpool-sixth-sense";
|
|
version = "0.18.8";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "abmantis";
|
|
repo = "whirlpool-sixth-sense";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Nmjw6b1k5M4H23tJxUPPJ3JIkuK5ylqEeFp18cGz9pA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aioconsole
|
|
aiohttp
|
|
async-timeout
|
|
websockets
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
# https://github.com/abmantis/whirlpool-sixth-sense/issues/15
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|