chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / pr / prometheus-borgmatic-exporter / package.nix
blob9aef55d3ae19711826e121516d2545078dee4545
2   lib,
3   borgmatic,
4   fetchFromGitHub,
5   python3Packages,
6 }:
8 python3Packages.buildPythonApplication rec {
9   pname = "prometheus-borgmatic-exporter";
10   version = "0.2.5";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "maxim-mityutko";
15     repo = "borgmatic-exporter";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-SgP1utu4Eqs9214pYOT9wP0Ms7AUQH1A3czQF8+qBRo=";
18   };
20   pythonRelaxDeps = [ "prometheus-client" ];
22   build-system = with python3Packages; [ poetry-core ];
24   propagatedBuildInputs =
25     [ borgmatic ]
26     ++ (with python3Packages; [
27       arrow
28       click
29       flask
30       loguru
31       pretty-errors
32       prometheus-client
33       timy
34       waitress
35     ]);
37   nativeCheckInputs = with python3Packages; [
38     pytestCheckHook
39     pytest-mock
40   ];
42   meta = with lib; {
43     description = "Prometheus exporter for Borgmatic";
44     homepage = "https://github.com/maxim-mityutko/borgmatic-exporter";
45     changelog = "https://github.com/maxim-mityutko/borgmatic-exporter/releases/tag/v${version}";
46     license = licenses.mit;
47     maintainers = with maintainers; [ flandweber ];
48     mainProgram = "borgmatic-exporter";
49     platforms = platforms.unix;
50   };