depot/third_party/nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

60 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, passlib
, dnspython
, loguru
, toml
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ciscoconfparse";
version = "1.6.36";
format = "pyproject";
src = fetchFromGitHub {
owner = "mpenning";
repo = pname;
rev = version;
sha256 = "sha256-nIuuqAxz8eHEQRuH8nfYVQ+vGMmcDcARJLizoI5Mty8=";
};
postPatch = ''
patchShebangs tests
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
passlib
dnspython
loguru
];
checkInputs = [
pytestCheckHook
];
disabledTestPaths = [
"tests/parse_test.py"
];
disabledTests = [
"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 = [ maintainers.astro ];
};
}