2022-12-10 22:53:22 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, prometheus-client
|
2023-09-27 20:33:57 +02:00
|
|
|
, pythonOlder
|
2022-12-10 22:53:22 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp-openmetrics";
|
2023-09-27 18:50:32 +02:00
|
|
|
version = "0.0.12";
|
2023-09-27 20:33:57 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-12-10 22:53:22 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-09-27 18:50:32 +02:00
|
|
|
hash = "sha256-/ZRngcMlroCVTvIl+30DR4SI8LsSnTovuzg3YduWgWA=";
|
2022-12-10 22:53:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
prometheus-client
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-09-27 20:33:57 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiohttp_openmetrics"
|
|
|
|
];
|
2022-12-10 22:53:22 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OpenMetrics provider for aiohttp";
|
|
|
|
homepage = "https://github.com/jelmer/aiohttp-openmetrics/";
|
2023-09-27 20:32:25 +02:00
|
|
|
changelog = "https://github.com/jelmer/aiohttp-openmetrics/releases/tag/v${version}";
|
2022-12-10 22:53:22 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|