2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flask,
|
|
|
|
prometheus-client,
|
|
|
|
pytestCheckHook,
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prometheus-flask-exporter";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.22.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rycus86";
|
|
|
|
repo = "prometheus_flask_exporter";
|
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-GAQ80J7at8Apqu+DUMN3+rLi/lrNv5Y7w/DKpUN2iu8=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
prometheus-client
|
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-02-13 14:23:35 +00:00
|
|
|
pytestFlagsArray = [ "tests/" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Prometheus exporter for Flask applications";
|
|
|
|
homepage = "https://github.com/rycus86/prometheus_flask_exporter";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lbpdt ];
|
|
|
|
};
|
|
|
|
}
|