Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 51 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, poetry-core 6, textfsm 7, pytestCheckHook 8, ruamel_yaml 9, yamllint 10}: 11 12buildPythonPackage rec { 13 pname = "ntc-templates"; 14 version = "2.0.0"; 15 format = "pyproject"; 16 disabled = isPy27; 17 18 src = fetchFromGitHub { 19 owner = "networktocode"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "05ifbzps9jxrrkrqybsdbm67jhynfcjc298pqkhp21q5jwnlrl72"; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 propagatedBuildInputs = [ 30 textfsm 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 ruamel_yaml 36 yamllint 37 ]; 38 39 # https://github.com/networktocode/ntc-templates/issues/743 40 disabledTests = [ 41 "test_raw_data_against_mock" 42 "test_verify_parsed_and_reference_data_exists" 43 ]; 44 45 meta = with lib; { 46 description = "TextFSM templates for parsing show commands of network devices"; 47 homepage = "https://github.com/networktocode/ntc-templates"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ hexa ]; 50 }; 51}