blob: f9b779f0eec55e64f1ebd500947f49c489cbd58d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "fritz-exporter";
version = "2.4.3";
pyproject = true;
src = fetchFromGitHub {
owner = "pdreker";
repo = "fritz_exporter";
rev = "fritzexporter-v${version}";
hash = "sha256-2A8hw2XkdxkauG+lMlKfObEvLHUQk79xWmlp0hlrXYM=";
};
postPatch = ''
# don't test coverage
sed -i "/^addopts/d" pyproject.toml
'';
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
attrs
defusedxml
fritzconnection
prometheus-client
pyyaml
requests
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
meta = {
changelog = "https://github.com/pdreker/fritz_exporter/blob/${src.rev}/CHANGELOG.md";
description = "Prometheus exporter for Fritz!Box home routers";
homepage = "https://github.com/pdreker/fritz_exporter";
license = lib.licenses.asl20;
mainProgram = "fritzexporter";
maintainers = with lib.maintainers; [ marie ];
};
}
|