Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, textfsm 6, pytestCheckHook 7, ruamel_yaml 8, yamllint 9}: 10 11buildPythonPackage rec { 12 pname = "ntc-templates"; 13 version = "1.5.0"; 14 disabled = isPy27; 15 16 src = fetchFromGitHub { 17 owner = "networktocode"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "0pvd9n7hcmxl9cr8m1xlqcjmy3k2hga0qmn2k3x9hripjis7pbbi"; 21 }; 22 23 propagatedBuildInputs = [ textfsm ]; 24 25 checkInputs = [ pytestCheckHook ruamel_yaml yamllint ]; 26 27 # https://github.com/networktocode/ntc-templates/issues/743 28 disabledTests = [ "test_raw_data_against_mock" "test_verify_parsed_and_reference_data_exists" ]; 29 30 meta = with lib; { 31 description = "TextFSM templates for parsing show commands of network devices"; 32 homepage = "https://github.com/networktocode/ntc-templates"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ hexa ]; 35 }; 36}