depot/third_party/nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

61 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
toml
];
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 ];
};
}