python312Packages.es-client: refactor

- format with nixfmt
This commit is contained in:
Fabian Affolter 2024-04-11 15:23:29 +02:00
parent f65eeb51be
commit 4f51994509

View File

@ -1,21 +1,22 @@
{ lib {
, buildPythonPackage lib,
, certifi buildPythonPackage,
, click certifi,
, ecs-logging click,
, elastic-transport ecs-logging,
, elasticsearch8 elastic-transport,
, fetchFromGitHub elasticsearch8,
, hatchling fetchFromGitHub,
, mock hatchling,
, pytest-asyncio mock,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, pythonRelaxDepsHook pythonOlder,
, pyyaml pythonRelaxDepsHook,
, requests pyyaml,
, six requests,
, voluptuous six,
voluptuous,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -34,12 +35,11 @@ buildPythonPackage rec {
pythonRelaxDeps = true; pythonRelaxDeps = true;
nativeBuildInputs = [ build-system = [ hatchling ];
hatchling
pythonRelaxDepsHook
];
propagatedBuildInputs = [ nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [
certifi certifi
click click
ecs-logging ecs-logging
@ -57,9 +57,7 @@ buildPythonPackage rec {
requests requests
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "es_client" ];
"es_client"
];
disabledTests = [ disabledTests = [
# Tests require network access # Tests require network access