21 buildPythonPackage rec {
22 pname = "python-roborock";
26 disabled = pythonOlder "3.10";
28 src = fetchFromGitHub {
29 owner = "humbertogontijo";
30 repo = "python-roborock";
31 rev = "refs/tags/v${version}";
32 hash = "sha256-vtT6hsyiP1FxWo5PezcjJACknCT9JEhqSQ6C4FpU+Jg=";
36 substituteInPlace pyproject.toml \
37 --replace-fail "poetry-core==1.8.0" "poetry-core"
40 pythonRelaxDeps = [ "pycryptodome" ];
42 build-system = [ poetry-core ];
44 nativeBuildInputs = [ pythonRelaxDepsHook ];
46 propagatedBuildInputs = [
54 ] ++ lib.optionals stdenv.isDarwin [ pycryptodomex ];
61 pythonImportsCheck = [ "roborock" ];
64 description = "Python library & console tool for controlling Roborock vacuum";
65 homepage = "https://github.com/humbertogontijo/python-roborock";
66 changelog = "https://github.com/humbertogontijo/python-roborock/blob/v${version}/CHANGELOG.md";
67 license = licenses.gpl3Only;
68 maintainers = with maintainers; [ fab ];
69 mainProgram = "roborock";