From b99c9b718844fec4d6fe47648c87deb1845e23ea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 15:17:10 +0200 Subject: [PATCH] python312Packages.elastic-apm: format with nixfmt --- .../python-modules/elastic-apm/default.nix | 97 +++++++++---------- 1 file changed, 45 insertions(+), 52 deletions(-) diff --git a/pkgs/development/python-modules/elastic-apm/default.nix b/pkgs/development/python-modules/elastic-apm/default.nix index ff2e363a6938..25ef39efea06 100644 --- a/pkgs/development/python-modules/elastic-apm/default.nix +++ b/pkgs/development/python-modules/elastic-apm/default.nix @@ -1,33 +1,34 @@ -{ lib -, stdenv -, aiohttp -, blinker -, buildPythonPackage -, certifi -, ecs-logging -, fetchFromGitHub -, httpx -, jinja2 -, jsonschema -, logbook -, mock -, pytest-asyncio -, pytest-bdd -, pytest-localserver -, pytest-mock -, pytest-random-order -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, sanic -, sanic-testing -, setuptools -, starlette -, structlog -, tornado -, urllib3 -, webob -, wrapt +{ + lib, + stdenv, + aiohttp, + blinker, + buildPythonPackage, + certifi, + ecs-logging, + fetchFromGitHub, + httpx, + jinja2, + jsonschema, + logbook, + mock, + pytest-asyncio, + pytest-bdd, + pytest-localserver, + pytest-mock, + pytest-random-order, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + sanic, + sanic-testing, + setuptools, + starlette, + structlog, + tornado, + urllib3, + webob, + wrapt, }: buildPythonPackage rec { @@ -44,17 +45,11 @@ buildPythonPackage rec { hash = "sha256-VuVx+QUiV4M/ebyv2uF/YZwfvcaPDJAEi55fXfoIttU="; }; - pythonRelaxDeps = [ - "wrapt" - ]; + pythonRelaxDeps = [ "wrapt" ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ aiohttp @@ -85,21 +80,19 @@ buildPythonPackage rec { webob ]; - disabledTests = [ - "elasticapm_client" - ]; + disabledTests = [ "elasticapm_client" ]; - disabledTestPaths = [ - # Exclude tornado tests - "tests/contrib/asyncio/tornado/tornado_tests.py" - ] ++ lib.optionals stdenv.isDarwin [ - # Flaky tests on Darwin - "tests/utils/threading_tests.py" - ]; + disabledTestPaths = + [ + # Exclude tornado tests + "tests/contrib/asyncio/tornado/tornado_tests.py" + ] + ++ lib.optionals stdenv.isDarwin [ + # Flaky tests on Darwin + "tests/utils/threading_tests.py" + ]; - pythonImportsCheck = [ - "elasticapm" - ]; + pythonImportsCheck = [ "elasticapm" ]; meta = with lib; { description = "Python agent for the Elastic APM";