1{ lib
2, buildPythonPackage
3, fetchPypi
4, aiohttp
5, prometheus-client
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "aiohttp-openmetrics";
11 version = "0.0.12";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-/ZRngcMlroCVTvIl+30DR4SI8LsSnTovuzg3YduWgWA=";
19 };
20
21 propagatedBuildInputs = [
22 aiohttp
23 prometheus-client
24 ];
25
26 # no tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "aiohttp_openmetrics"
31 ];
32
33 meta = with lib; {
34 description = "OpenMetrics provider for aiohttp";
35 homepage = "https://github.com/jelmer/aiohttp-openmetrics/";
36 changelog = "https://github.com/jelmer/aiohttp-openmetrics/releases/tag/v${version}";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ ];
39 };
40}