83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
37 lines
839 B
Nix
37 lines
839 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "prometheus-client";
|
|
version = "0.16.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "client_python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-FYQE0toy5VFKNVadSsxG/5NCRANYJOcVR4bGPrCAxvc=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"prometheus_client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Prometheus instrumentation library for Python applications";
|
|
homepage = "https://github.com/prometheus/client_python";
|
|
changelog = "https://github.com/prometheus/client_python/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|