Merge pull request #116093 from mweinelt/python/ntc-templates

python3Packages.ntc-templates: 1.6.0 -> 2.0.0
This commit is contained in:
Sandro 2021-03-13 01:45:18 +01:00 committed by GitHub
commit b3ea24a414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 6 deletions

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, isPy27 , isPy27
, poetry-core
, textfsm , textfsm
, pytestCheckHook , pytestCheckHook
, ruamel_yaml , ruamel_yaml
@ -10,22 +11,36 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ntc-templates"; pname = "ntc-templates";
version = "1.6.0"; version = "2.0.0";
format = "pyproject";
disabled = isPy27; disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "networktocode"; owner = "networktocode";
repo = pname; repo = pname;
rev = "dc27599b0c5f3bb6ff23049e781b5dab2849c2c3"; # not tagged rev = "v${version}";
sha256 = "1vg5y5c51vc9dj3b8qcffh6dz85ri11zb1azxmyvgbq86pcvbx9f"; sha256 = "05ifbzps9jxrrkrqybsdbm67jhynfcjc298pqkhp21q5jwnlrl72";
}; };
propagatedBuildInputs = [ textfsm ]; nativeBuildInputs = [
poetry-core
];
checkInputs = [ pytestCheckHook ruamel_yaml yamllint ]; propagatedBuildInputs = [
textfsm
];
checkInputs = [
pytestCheckHook
ruamel_yaml
yamllint
];
# https://github.com/networktocode/ntc-templates/issues/743 # https://github.com/networktocode/ntc-templates/issues/743
disabledTests = [ "test_raw_data_against_mock" "test_verify_parsed_and_reference_data_exists" ]; disabledTests = [
"test_raw_data_against_mock"
"test_verify_parsed_and_reference_data_exists"
];
meta = with lib; { meta = with lib; {
description = "TextFSM templates for parsing show commands of network devices"; description = "TextFSM templates for parsing show commands of network devices";