depot/third_party/nixpkgs/pkgs/development/python-modules/ntc-templates/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
poetry-core,
textfsm,
invoke,
pytestCheckHook,
ruamel-yaml,
toml,
yamllint,
}:
buildPythonPackage rec {
pname = "ntc-templates";
version = "5.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "networktocode";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-SnmI1/lB1p/zldgn9jIid4yJ5+ubr5mh/IAqXY/1Wbc=";
};
nativeBuildInputs = [ 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/v${version}";
license = licenses.asl20;
maintainers = [ ];
};
}