Files
nixpkgs/pkgs/development/python-modules/ntc-templates/default.nix
T
2025-03-28 21:17:15 +00:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
poetry-core,
textfsm,
invoke,
pytestCheckHook,
ruamel-yaml,
toml,
yamllint,
}:
buildPythonPackage rec {
pname = "ntc-templates";
version = "7.8.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "networktocode";
repo = "ntc-templates";
tag = "v${version}";
hash = "sha256-v9+d9nZiYneG3vULtQZsa/gD6FCyBrrbGxUJsv1sMYA=";
};
build-system = [ poetry-core ];
propagatedBuildInputs = [ textfsm ];
nativeCheckInputs = [
invoke
pytestCheckHook
ruamel-yaml
toml
yamllint
];
# https://github.com/networktocode/ntc-templates/issues/743
disabledTests = [
"test_raw_data_against_mock"
"test_verify_parsed_and_reference_data_exists"
];
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 = [ ];
};
}