Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 74 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, buildPythonPackage, deprecat, dnspython, fetchFromGitHub, loguru, passlib, poetry-core, pytestCheckHook, pythonOlder, toml,}:
buildPythonPackage rec { pname = "ciscoconfparse"; version = "1.7.24"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "mpenning"; repo = "ciscoconfparse"; rev = "refs/tags/${version}"; hash = "sha256-vL/CQdYcOP356EyRToviWylP1EBtxmeov6qkhfQNZ2Y="; };
pythonRelaxDeps = [ "loguru" ];
postPatch = '' # The line below is in the [build-system] section, which is invalid and # rejected by PyPA's build tool. It belongs in [project] but upstream has # had problems with putting that there (see comment in pyproject.toml). sed -i '/requires-python/d' pyproject.toml
substituteInPlace pyproject.toml \ --replace-fail '"poetry>=1.3.2",' ""
patchShebangs tests '';
build-system = [ poetry-core ];
dependencies = [ passlib deprecat dnspython loguru toml ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [ "tests/parse_test.py" ];
disabledTests = [ # Tests require network access "test_dns_lookup" "test_reverse_dns_lookup" # Path issues with configuration files "testParse_valid_filepath" ];
pythonImportsCheck = [ "ciscoconfparse" ];
meta = with lib; { description = "Module to parse, audit, query, build, and modify Cisco IOS-style configurations"; homepage = "https://github.com/mpenning/ciscoconfparse"; changelog = "https://github.com/mpenning/ciscoconfparse/blob/${version}/CHANGES.md"; license = licenses.gpl3Only; maintainers = with maintainers; [ astro ]; };}