Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.22.4"; 12 13 src = fetchFromGitHub { 14 owner = "rycus86"; 15 repo = "prometheus_flask_exporter"; 16 rev = version; 17 hash = "sha256-GAQ80J7at8Apqu+DUMN3+rLi/lrNv5Y7w/DKpUN2iu8="; 18 }; 19 20 propagatedBuildInputs = [ flask prometheus-client ]; 21 22 nativeCheckInputs = [ 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}