python311Packages.aiohttp-openmetrics: add format
- disable on unsupported Python releases
This commit is contained in:
parent
2e2d771dec
commit
ff29c82a14
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue