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