5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, aioconsole
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whirlpool-sixth-sense";
|
|
version = "0.18.5";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "abmantis";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-0NJsZex054CWfKX2wyJRd6Cnxa89mNrZN59VqIV2MD8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aioconsole
|
|
aiohttp
|
|
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 ];
|
|
};
|
|
}
|