depot/third_party/nixpkgs/pkgs/development/python-modules/prometheus-client/default.nix

38 lines
839 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "prometheus-client";
version = "0.17.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "prometheus";
repo = "client_python";
rev = "refs/tags/v${version}";
hash = "sha256-ag9gun47Ar0Sw3ZGIXAHjtv4GdhX8x51UVkgwdQ8A+s=";
};
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; [ ];
};
}