Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ntc-templates / default.nix
blob04b2c8c17f1ade9909363b806d2690acda316e73
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , poetry-core
6 , textfsm
7 , invoke
8 , pytestCheckHook
9 , ruamel-yaml
10 , toml
11 , yamllint
14 buildPythonPackage rec {
15   pname = "ntc-templates";
16   version = "4.4.0";
17   format = "pyproject";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "networktocode";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-8Lzh6ku2TUQFatqbOb5JIc/WkRPegx/gNnT53DErMuk=";
26   };
28   nativeBuildInputs = [
29     poetry-core
30   ];
32   propagatedBuildInputs = [
33     textfsm
34   ];
36   nativeCheckInputs = [
37     invoke
38     pytestCheckHook
39     ruamel-yaml
40     toml
41     yamllint
42   ];
44   # https://github.com/networktocode/ntc-templates/issues/743
45   disabledTests = [
46     "test_raw_data_against_mock"
47     "test_verify_parsed_and_reference_data_exists"
48   ];
50   meta = with lib; {
51     description = "TextFSM templates for parsing show commands of network devices";
52     homepage = "https://github.com/networktocode/ntc-templates";
53     changelog = "https://github.com/networktocode/ntc-templates/releases/tag/v${version}";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ ];
56   };