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
51 lines
987 B
Nix
51 lines
987 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
poetry-core,
|
|
textfsm,
|
|
invoke,
|
|
pytestCheckHook,
|
|
ruamel-yaml,
|
|
toml,
|
|
yamllint,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ntc-templates";
|
|
version = "7.9.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "networktocode";
|
|
repo = "ntc-templates";
|
|
tag = "v${version}";
|
|
hash = "sha256-ujWPcVqwdtMlCkTZP/PJ3oMR60F6IHrZXXhcNT7JmmM=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
pythonRelaxDeps = [ "textfsm" ];
|
|
|
|
dependencies = [ textfsm ];
|
|
|
|
nativeCheckInputs = [
|
|
invoke
|
|
pytestCheckHook
|
|
ruamel-yaml
|
|
toml
|
|
yamllint
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "TextFSM templates for parsing show commands of network devices";
|
|
homepage = "https://github.com/networktocode/ntc-templates";
|
|
changelog = "https://github.com/networktocode/ntc-templates/releases/tag/${src.tag}";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|