94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, click
|
|
, construct
|
|
, dacite
|
|
, fetchFromGitHub
|
|
, paho-mqtt
|
|
, poetry-core
|
|
, pycryptodome
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-roborock";
|
|
version = "0.18.6";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "humbertogontijo";
|
|
repo = "python-roborock";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-7fJfN5pOHmxjjivFNhfp6ZK8jTBbuJARfEZkzrnsg4w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
click
|
|
construct
|
|
dacite
|
|
paho-mqtt
|
|
pycryptodome
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"roborock"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library & console tool for controlling Roborock vacuum";
|
|
homepage = "https://github.com/humbertogontijo/python-roborock";
|
|
changelog = "https://github.com/humbertogontijo/python-roborock/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|