567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
51 lines
981 B
Nix
51 lines
981 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 = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|