python311Packages.aiohttp-openmetrics: add format

- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter 2023-09-27 20:33:57 +02:00 committed by GitHub
parent 2e2d771dec
commit ff29c82a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,11 +3,15 @@
, fetchPypi , fetchPypi
, aiohttp , aiohttp
, prometheus-client , prometheus-client
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohttp-openmetrics"; pname = "aiohttp-openmetrics";
version = "0.0.12"; version = "0.0.12";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -22,7 +26,9 @@ buildPythonPackage rec {
# no tests # no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "aiohttp_openmetrics" ]; pythonImportsCheck = [
"aiohttp_openmetrics"
];
meta = with lib; { meta = with lib; {
description = "OpenMetrics provider for aiohttp"; description = "OpenMetrics provider for aiohttp";