depot/third_party/nixpkgs/pkgs/development/python-modules/aiohttp-openmetrics/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

45 lines
850 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, prometheus-client
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aiohttp-openmetrics";
version = "0.0.12";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-/ZRngcMlroCVTvIl+30DR4SI8LsSnTovuzg3YduWgWA=";
};
build-system = [
setuptools
];
dependencies = [
aiohttp
prometheus-client
];
# no tests
doCheck = false;
pythonImportsCheck = [
"aiohttp_openmetrics"
];
meta = with lib; {
description = "OpenMetrics provider for aiohttp";
homepage = "https://github.com/jelmer/aiohttp-openmetrics/";
changelog = "https://github.com/jelmer/aiohttp-openmetrics/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}