0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

python3Packages.ntc-templates: 1.6.0 -> 2.0.0

This commit is contained in:
Martin Weinelt 2021-03-12 20:55:38 +01:00
parent 7ba904b85e
commit bbd64139f6
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

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";