1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flask,
6 prometheus-client,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "prometheus-flask-exporter";
13 version = "0.23.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "rycus86";
18 repo = "prometheus_flask_exporter";
19 tag = version;
20 hash = "sha256-fWCIthtBiPJwn/Mbbwdv2+1cr9nlpUsPE2mDkaSsfpM=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 flask
27 prometheus-client
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 enabledTestPaths = [ "tests/" ];
33
34 disabledTests = [
35 # AssertionError
36 "test_group_by_lambda_is_not_supported"
37 ];
38
39 meta = with lib; {
40 description = "Prometheus exporter for Flask applications";
41 homepage = "https://github.com/rycus86/prometheus_flask_exporter";
42 license = licenses.mit;
43 maintainers = with maintainers; [ lbpdt ];
44 };
45}