Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, fetchFromGitHub, napalm, netmiko, pip, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "napalm-hp-procurve"; version = "0.7.0"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "napalm-automation-community"; repo = "napalm-hp-procurve"; rev = "refs/tags/${version}"; hash = "sha256-cO4kxI90krj1knzixRKWxa77OAaxjO8dLTy02VpkV9M="; };
patchPhase = '' # Dependency installation in setup.py doesn't work echo -n > requirements.txt substituteInPlace setup.cfg \ --replace "--cov=napalm_procurve --cov-report term-missing -vs --pylama" "" '';
nativeBuildInputs = [ pip ];
buildInputs = [ napalm ];
propagatedBuildInputs = [ netmiko ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ # AssertionError: Some methods vary. "test_method_signatures" # AttributeError: 'PatchedProcurveDriver' object has no attribute 'platform' "test_get_config_filtered" # AssertionError "test_get_interfaces" "test_get_facts" ];
pythonImportsCheck = [ "napalm_procurve" ];
meta = with lib; { description = "HP ProCurve Driver for NAPALM automation frontend"; homepage = "https://github.com/napalm-automation-community/napalm-hp-procurve"; license = licenses.asl20; maintainers = [ ]; };}