2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, passlib
|
|
|
|
, dnspython
|
|
|
|
, loguru
|
|
|
|
, toml
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2022-02-21 08:47:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ciscoconfparse";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "1.6.36";
|
2022-02-21 08:47:16 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpenning";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-nIuuqAxz8eHEQRuH8nfYVQ+vGMmcDcARJLizoI5Mty8=";
|
2022-02-21 08:47:16 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
postPatch = ''
|
2022-02-21 08:47:16 +00:00
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2022-02-21 08:47:16 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
passlib
|
|
|
|
dnspython
|
|
|
|
loguru
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/parse_test.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_dns_lookup"
|
|
|
|
"test_reverse_dns_lookup"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ciscoconfparse" ];
|
2022-02-21 08:47:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"Parse, Audit, Query, Build, and Modify Cisco IOS-style configurations";
|
|
|
|
homepage = "https://github.com/mpenning/ciscoconfparse";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.astro ];
|
|
|
|
};
|
|
|
|
}
|