Diff: https://github.com/Python-roborock/python-roborock/compare/v2.49.1...v2.50.2 Changelog: https://github.com/Python-roborock/python-roborock/blob/v2.50.2/CHANGELOG.md
88 lines
1.7 KiB
Nix
88 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
aiohttp,
|
|
aiomqtt,
|
|
aioresponses,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
click,
|
|
construct,
|
|
dacite,
|
|
fetchFromGitHub,
|
|
freezegun,
|
|
paho-mqtt,
|
|
poetry-core,
|
|
pycryptodome,
|
|
pycryptodomex,
|
|
pyrate-limiter,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
vacuum-map-parser-roborock,
|
|
pyshark,
|
|
pyyaml,
|
|
click-shell,
|
|
syrupy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-roborock";
|
|
version = "2.50.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Python-roborock";
|
|
repo = "python-roborock";
|
|
tag = "v${version}";
|
|
hash = "sha256-66kSNkivq6BHnqIqx1INtdoysBJfCqV76yIAJiHmfxQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "poetry-core==1.8.0" "poetry-core"
|
|
'';
|
|
|
|
pythonRelaxDeps = [ "pycryptodome" ];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aiomqtt
|
|
async-timeout
|
|
click
|
|
construct
|
|
dacite
|
|
paho-mqtt
|
|
pycryptodome
|
|
pyrate-limiter
|
|
vacuum-map-parser-roborock
|
|
pyyaml
|
|
pyshark
|
|
click-shell
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ pycryptodomex ];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
freezegun
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
syrupy
|
|
];
|
|
|
|
pythonImportsCheck = [ "roborock" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library & console tool for controlling Roborock vacuum";
|
|
homepage = "https://github.com/Python-roborock/python-roborock";
|
|
changelog = "https://github.com/Python-roborock/python-roborock/blob/${src.tag}/CHANGELOG.md";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "roborock";
|
|
};
|
|
}
|