2022-02-21 08:47:16 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, napalm, netmiko
|
|
|
|
, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "napalm-hp-procurve";
|
|
|
|
version = "0.7.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "napalm-automation-community";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1lspciddkd1w5lfyz35i0qwgpbn5jq9cbqkwjbsvi4kliz229vkh";
|
|
|
|
};
|
|
|
|
|
|
|
|
# dependency installation in setup.py doesn't work
|
|
|
|
patchPhase = ''
|
|
|
|
echo -n > requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ setuptools napalm ];
|
|
|
|
propagatedBuildInputs = [ netmiko ];
|
|
|
|
|
|
|
|
# setup.cfg seems to contain invalid pytest parameters
|
|
|
|
preCheck = ''
|
|
|
|
rm setup.cfg
|
|
|
|
'';
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: Some methods vary.
|
|
|
|
"test_method_signatures"
|
|
|
|
# AttributeError: 'PatchedProcurveDriver' object has no attribute 'platform'
|
|
|
|
"test_get_config_filtered"
|
2022-06-16 17:23:12 +00:00
|
|
|
# AssertionError
|
|
|
|
"test_get_interfaces"
|
2022-02-21 08:47:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "HP ProCurve Driver for NAPALM automation frontend";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/napalm-automation-community/napalm-hp-procurve";
|
2022-02-21 08:47:16 +00:00
|
|
|
license = licenses.asl20;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-02-21 08:47:16 +00:00
|
|
|
};
|
|
|
|
}
|