depot/third_party/nixpkgs/pkgs/development/python-modules/prometheus-flask-exporter/default.nix
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

31 lines
731 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, prometheus-client
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "prometheus-flask-exporter";
version = "0.20.3";
src = fetchFromGitHub {
owner = "rycus86";
repo = "prometheus_flask_exporter";
rev = version;
sha256 = "sha256-l9Iw9fvXQMXzq1y/4Dml8uLPJWyqX6SDIXptJVw3cVQ=";
};
propagatedBuildInputs = [ flask prometheus-client ];
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/" ];
meta = with lib; {
description = "Prometheus exporter for Flask applications";
homepage = "https://github.com/rycus86/prometheus_flask_exporter";
license = licenses.mit;
maintainers = with maintainers; [ lbpdt ];
};
}