From 4f51994509b626f68914c63d6b401267894ef245 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 15:23:29 +0200 Subject: [PATCH] python312Packages.es-client: refactor - format with nixfmt --- .../python-modules/es-client/default.nix | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/pkgs/development/python-modules/es-client/default.nix b/pkgs/development/python-modules/es-client/default.nix index 1e8aa4b68ab1..3204da1d5a97 100644 --- a/pkgs/development/python-modules/es-client/default.nix +++ b/pkgs/development/python-modules/es-client/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, certifi -, click -, ecs-logging -, elastic-transport -, elasticsearch8 -, fetchFromGitHub -, hatchling -, mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, requests -, six -, voluptuous +{ + lib, + buildPythonPackage, + certifi, + click, + ecs-logging, + elastic-transport, + elasticsearch8, + fetchFromGitHub, + hatchling, + mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + pyyaml, + requests, + six, + voluptuous, }: buildPythonPackage rec { @@ -34,12 +35,11 @@ buildPythonPackage rec { pythonRelaxDeps = true; - nativeBuildInputs = [ - hatchling - pythonRelaxDepsHook - ]; + build-system = [ hatchling ]; - propagatedBuildInputs = [ + nativeBuildInputs = [ pythonRelaxDepsHook ]; + + dependencies = [ certifi click ecs-logging @@ -57,9 +57,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "es_client" - ]; + pythonImportsCheck = [ "es_client" ]; disabledTests = [ # Tests require network access