1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-02 05:49:22 +03:00
nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.1 KiB
Nix
Raw Normal View History

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