a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
66 lines
1.1 KiB
Nix
66 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dnspython
|
|
, fetchFromGitHub
|
|
, loguru
|
|
, passlib
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ciscoconfparse";
|
|
version = "1.6.50";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mpenning";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-OKPw7P2hhk8yzqjOcf2NYEueJR1ecC/D93ULfkM88Xg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs tests
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
passlib
|
|
dnspython
|
|
loguru
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"tests/parse_test.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests require network access
|
|
"test_dns_lookup"
|
|
"test_reverse_dns_lookup"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ciscoconfparse"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Parse, Audit, Query, Build, and Modify Cisco IOS-style configurations";
|
|
homepage = "https://github.com/mpenning/ciscoconfparse";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ astro ];
|
|
};
|
|
}
|