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
, 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";