Skip to content

Commit 4a9d902

Browse files
committed
python313Packages.ciscoconfparse2: init at 0.8.6
Module to parse, audit, query, build and modify device configurations https://github.com/mpenning/ciscoconfparse2
1 parent e5de02b commit 4a9d902

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
lib,
3+
attrs,
4+
buildPythonPackage,
5+
dnspython,
6+
fetchFromGitHub,
7+
hatchling,
8+
hier-config,
9+
loguru,
10+
macaddress,
11+
passlib,
12+
pyparsing,
13+
pytest-cov-stub,
14+
pytestCheckHook,
15+
pyyaml,
16+
rich,
17+
scrypt,
18+
tomlkit,
19+
typeguard,
20+
}:
21+
22+
buildPythonPackage rec {
23+
pname = "ciscoconfparse2";
24+
version = "0.8.6";
25+
pyproject = true;
26+
27+
src = fetchFromGitHub {
28+
owner = "mpenning";
29+
repo = "ciscoconfparse2";
30+
tag = version;
31+
hash = "sha256-ICv8H64aVC8Q/rl4lnSmBQ7CsaV3KtlIf/g3WZTJL9s=";
32+
};
33+
34+
pythonRelaxDeps = [
35+
"attrs"
36+
"hier-config"
37+
"passlib"
38+
"typeguard"
39+
];
40+
41+
build-system = [ hatchling ];
42+
43+
dependencies = [
44+
attrs
45+
dnspython
46+
hier-config
47+
loguru
48+
macaddress
49+
passlib
50+
pyparsing
51+
pyyaml
52+
rich
53+
scrypt
54+
tomlkit
55+
typeguard
56+
];
57+
58+
nativeCheckInputs = [
59+
pytest-cov-stub
60+
pytestCheckHook
61+
];
62+
63+
pythonImportsCheck = [ "ciscoconfparse2" ];
64+
65+
disabledTests = [
66+
# Fixtures are missing
67+
"testParse_parse_syntax"
68+
"testParse_syntax"
69+
"testVal_IOSHSRPGroups"
70+
"testVal_IOSSDWAN"
71+
"testVal_junos_factory"
72+
"testVal_JunosCfgLine"
73+
"testValues_ccp_script_entry_cliapplication"
74+
"testValues_Diff"
75+
"testValues_IOSCfgLine"
76+
"testValues_pickle"
77+
"testValues_save_as_01"
78+
];
79+
80+
meta = {
81+
description = "Module to parse, audit, query, build and modify device configurations";
82+
homepage = "https://github.com/mpenning/ciscoconfparse2";
83+
changelog = "https://github.com/mpenning/ciscoconfparse2/blob/${src.tag}/CHANGES.md";
84+
license = lib.licenses.gpl3Only;
85+
maintainers = with lib.maintainers; [ fab ];
86+
};
87+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,6 +2364,8 @@ self: super: with self; {
23642364

23652365
ciscoconfparse = callPackage ../development/python-modules/ciscoconfparse { };
23662366

2367+
ciscoconfparse2 = callPackage ../development/python-modules/ciscoconfparse2 { };
2368+
23672369
ciscomobilityexpress = callPackage ../development/python-modules/ciscomobilityexpress { };
23682370

23692371
ciso8601 = callPackage ../development/python-modules/ciso8601 { };

0 commit comments

Comments
 (0)