From b7ef007f7bdae7da1319b76e4ab237e5485239ea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 9 Apr 2024 19:03:04 +0200 Subject: [PATCH] python312Packages.python-roborock: format with nixfmt --- .../python-roborock/default.nix | 55 ++++++++----------- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/pkgs/development/python-modules/python-roborock/default.nix b/pkgs/development/python-modules/python-roborock/default.nix index e3eaff2cffba..0f82455c1266 100644 --- a/pkgs/development/python-modules/python-roborock/default.nix +++ b/pkgs/development/python-modules/python-roborock/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, aiohttp -, async-timeout -, buildPythonPackage -, click -, construct -, dacite -, fetchFromGitHub -, paho-mqtt -, poetry-core -, pycryptodome -, pycryptodomex -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + stdenv, + aiohttp, + async-timeout, + buildPythonPackage, + click, + construct, + dacite, + fetchFromGitHub, + paho-mqtt, + poetry-core, + pycryptodome, + pycryptodomex, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -36,17 +37,11 @@ buildPythonPackage rec { --replace "poetry-core==1.8.0" "poetry-core" ''; - pythonRelaxDeps = [ - "pycryptodome" - ]; + pythonRelaxDeps = [ "pycryptodome" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ aiohttp @@ -56,18 +51,14 @@ buildPythonPackage rec { dacite paho-mqtt pycryptodome - ] ++ lib.optionals stdenv.isDarwin [ - pycryptodomex - ]; + ] ++ lib.optionals stdenv.isDarwin [ pycryptodomex ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "roborock" - ]; + pythonImportsCheck = [ "roborock" ]; meta = with lib; { description = "Python library & console tool for controlling Roborock vacuum";