From ff29c82a14b0543cd5aaff84a39e72e4018fe66b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 27 Sep 2023 20:33:57 +0200 Subject: [PATCH] python311Packages.aiohttp-openmetrics: add format - disable on unsupported Python releases --- .../python-modules/aiohttp-openmetrics/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiohttp-openmetrics/default.nix b/pkgs/development/python-modules/aiohttp-openmetrics/default.nix index 487e1fbce27..11b979c4f6c 100644 --- a/pkgs/development/python-modules/aiohttp-openmetrics/default.nix +++ b/pkgs/development/python-modules/aiohttp-openmetrics/default.nix @@ -3,11 +3,15 @@ , fetchPypi , aiohttp , prometheus-client +, pythonOlder }: buildPythonPackage rec { pname = "aiohttp-openmetrics"; version = "0.0.12"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; @@ -22,7 +26,9 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ "aiohttp_openmetrics" ]; + pythonImportsCheck = [ + "aiohttp_openmetrics" + ]; meta = with lib; { description = "OpenMetrics provider for aiohttp";