mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
fritz-exporter: 2.3.1 -> 2.4.3
https://github.com/pdreker/fritz_exporter/releases/tag/fritzexporter-v2.4.3
This commit is contained in:
parent
6074e65d28
commit
fa347347f3
@ -1,14 +0,0 @@
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index ffad1a4..e7551da 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -44,6 +44,9 @@ coverage = ">=6.4.4,<8.0.0"
|
||||
pytest-cov = ">=3,<5"
|
||||
ruff = "^0.1.7"
|
||||
|
||||
+[tool.poetry.scripts]
|
||||
+fritzexporter = "fritzexporter.__main__:main"
|
||||
+
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
@ -5,21 +5,16 @@
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "fritz-exporter";
|
||||
version = "2.3.1";
|
||||
version = "2.4.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pdreker";
|
||||
repo = "fritz_exporter";
|
||||
rev = "fritzexporter-v${version}";
|
||||
hash = "sha256-Dv/2Og1OJV7canZ8Y5Pai5gPRUvcRDYmSGoD2pnAkSs=";
|
||||
hash = "sha256-2A8hw2XkdxkauG+lMlKfObEvLHUQk79xWmlp0hlrXYM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/pdreker/fritz_exporter/pull/282
|
||||
./console-script.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# don't test coverage
|
||||
sed -i "/^addopts/d" pyproject.toml
|
||||
@ -31,6 +26,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
attrs
|
||||
defusedxml
|
||||
fritzconnection
|
||||
prometheus-client
|
||||
pyyaml
|
||||
|
Loading…
Reference in New Issue
Block a user