1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flask 5, prometheus-client 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "prometheus-flask-exporter"; 11 version = "0.18.1"; 12 13 src = fetchFromGitHub { 14 owner = "rycus86"; 15 repo = "prometheus_flask_exporter"; 16 rev = version; 17 sha256 = "1dwisp681w0f6zf0000rxd3ksdb48zb9mr38qfdqk2ir24y8w370"; 18 }; 19 20 propagatedBuildInputs = [ flask prometheus-client ]; 21 22 checkInputs = [ pytestCheckHook ]; 23 pytestFlagsArray = [ "tests/" ]; 24 25 meta = with lib; { 26 description = "Prometheus exporter for Flask applications"; 27 homepage = "https://github.com/rycus86/prometheus_flask_exporter"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ lbpdt ]; 30 }; 31}