Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
968 B
Nix
47 lines
968 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
let
|
|
version = "1.2.14";
|
|
in
|
|
python3Packages.buildPythonApplication {
|
|
pname = "mktxp";
|
|
inherit version;
|
|
pyproject = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "akpw";
|
|
repo = "mktxp";
|
|
tag = "v${version}";
|
|
hash = "sha256-4+0aw/r71FcVrxASco3AkYzi7zbFeiEkJB7acGdb1FQ=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
pypaInstallHook
|
|
setuptoolsBuildHook
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
prometheus-client
|
|
routeros-api
|
|
configobj
|
|
humanize
|
|
texttable
|
|
speedtest-cli
|
|
waitress
|
|
packaging
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/akpw/mktxp";
|
|
changelog = "https://github.com/akpw/mktxp/releases/tag/v${version}";
|
|
description = "Prometheus Exporter for Mikrotik RouterOS devices";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.BonusPlay ];
|
|
mainProgram = "mktxp";
|
|
};
|
|
}
|