depot/third_party/nixpkgs/pkgs/development/python-modules/prometheus-client/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

36 lines
737 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "prometheus-client";
version = "0.13.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "prometheus";
repo = "client_python";
rev = "v${version}";
sha256 = "sha256-1sMnlUOvvdlUuh288UalAdlf0a1mpnM+Y/upwlnL1H8=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"prometheus_client"
];
meta = with lib; {
description = "Prometheus instrumentation library for Python applications";
homepage = "https://github.com/prometheus/client_python";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}