Files
nixpkgs/pkgs/development/python-modules/netmiko/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
964 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
ntc-templates,
paramiko,
poetry-core,
pyserial,
pyyaml,
rich,
ruamel-yaml,
scp,
textfsm,
}:
buildPythonPackage rec {
pname = "netmiko";
version = "4.6.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-lwG7LBoV6y6AdMsuKMoAfGm5+lKWG4O5jHV+rWuA3u8=";
};
build-system = [ poetry-core ];
dependencies = [
ntc-templates
paramiko
pyserial
pyyaml
rich
ruamel-yaml
scp
textfsm
];
# Tests require closed-source pyats and genie packages
doCheck = false;
pythonImportsCheck = [ "netmiko" ];
meta = {
description = "Multi-vendor library to simplify Paramiko SSH connections to network devices";
homepage = "https://github.com/ktbyers/netmiko/";
changelog = "https://github.com/ktbyers/netmiko/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.astro ];
};
}