python312Packages.python-roborock: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-09 19:03:04 +02:00
parent e99d758c39
commit b7ef007f7b

View File

@ -1,20 +1,21 @@
{ lib {
, stdenv lib,
, aiohttp stdenv,
, async-timeout aiohttp,
, buildPythonPackage async-timeout,
, click buildPythonPackage,
, construct click,
, dacite construct,
, fetchFromGitHub dacite,
, paho-mqtt fetchFromGitHub,
, poetry-core paho-mqtt,
, pycryptodome poetry-core,
, pycryptodomex pycryptodome,
, pytest-asyncio pycryptodomex,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, pythonRelaxDepsHook pythonOlder,
pythonRelaxDepsHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -36,17 +37,11 @@ buildPythonPackage rec {
--replace "poetry-core==1.8.0" "poetry-core" --replace "poetry-core==1.8.0" "poetry-core"
''; '';
pythonRelaxDeps = [ pythonRelaxDeps = [ "pycryptodome" ];
"pycryptodome"
];
build-system = [ build-system = [ poetry-core ];
poetry-core
];
nativeBuildInputs = [ nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDepsHook
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@ -56,18 +51,14 @@ buildPythonPackage rec {
dacite dacite
paho-mqtt paho-mqtt
pycryptodome pycryptodome
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [ pycryptodomex ];
pycryptodomex
];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "roborock" ];
"roborock"
];
meta = with lib; { meta = with lib; {
description = "Python library & console tool for controlling Roborock vacuum"; description = "Python library & console tool for controlling Roborock vacuum";