Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, aiohttp 5, prometheus-client 6}: 7 8buildPythonPackage rec { 9 pname = "aiohttp-openmetrics"; 10 version = "0.0.11"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-GIVUkjyn+iQSMZZ6dNmmimvbt+t+uxOYv2QEDk/dA+g="; 15 }; 16 17 propagatedBuildInputs = [ 18 aiohttp 19 prometheus-client 20 ]; 21 22 # no tests 23 doCheck = false; 24 25 pythonImportsCheck = [ "aiohttp_openmetrics" ]; 26 27 meta = with lib; { 28 description = "OpenMetrics provider for aiohttp"; 29 homepage = "https://github.com/jelmer/aiohttp-openmetrics/"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ ]; 32 }; 33}