2022-02-21 08:47:16 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools, paramiko, scp, tenacity
|
|
|
|
, textfsm, ntc-templates, pyserial, pytestCheckHook, pyyaml }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "netmiko";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "4.1.2";
|
2022-02-21 08:47:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-9e3iooZw09/TRwBhRoZl+A+bSQbtIOaw+02eHJvmevw=";
|
2022-02-21 08:47:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ setuptools ];
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [ paramiko scp tenacity pyyaml textfsm ntc-templates pyserial ];
|
2022-02-21 08:47:16 +00:00
|
|
|
|
|
|
|
# tests require closed-source pyats and genie packages
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"Multi-vendor library to simplify Paramiko SSH connections to network devices";
|
|
|
|
homepage = "https://github.com/ktbyers/netmiko/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.astro ];
|
|
|
|
};
|
|
|
|
}
|