nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 933 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 textfsm, 7 invoke, 8 pytestCheckHook, 9 ruamel-yaml, 10 toml, 11 yamllint, 12}: 13 14buildPythonPackage rec { 15 pname = "ntc-templates"; 16 version = "8.1.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "networktocode"; 21 repo = "ntc-templates"; 22 tag = "v${version}"; 23 hash = "sha256-J1Icf9UG5IMYBH90Mfxd+p+rk57z2OXQENnoRAaepN4="; 24 }; 25 26 build-system = [ poetry-core ]; 27 28 pythonRelaxDeps = [ "textfsm" ]; 29 30 dependencies = [ textfsm ]; 31 32 nativeCheckInputs = [ 33 invoke 34 pytestCheckHook 35 ruamel-yaml 36 toml 37 yamllint 38 ]; 39 40 meta = { 41 description = "TextFSM templates for parsing show commands of network devices"; 42 homepage = "https://github.com/networktocode/ntc-templates"; 43 changelog = "https://github.com/networktocode/ntc-templates/releases/tag/${src.tag}"; 44 license = lib.licenses.asl20; 45 maintainers = [ ]; 46 }; 47}