1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flask,
6 prometheus-client,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "prometheus-flask-exporter";
12 version = "0.22.4";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "rycus86";
17 repo = "prometheus_flask_exporter";
18 rev = version;
19 hash = "sha256-GAQ80J7at8Apqu+DUMN3+rLi/lrNv5Y7w/DKpUN2iu8=";
20 };
21
22 propagatedBuildInputs = [
23 flask
24 prometheus-client
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28 pytestFlagsArray = [ "tests/" ];
29
30 meta = with lib; {
31 description = "Prometheus exporter for Flask applications";
32 homepage = "https://github.com/rycus86/prometheus_flask_exporter";
33 license = licenses.mit;
34 maintainers = with maintainers; [ lbpdt ];
35 };
36}