Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 60 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, buildPythonPackage, fetchPypi, ntc-templates, paramiko, poetry-core, pyserial, pythonOlder, pyyaml, rich, ruamel-yaml, scp, textfsm,}:
buildPythonPackage rec { pname = "netmiko"; version = "4.5.0"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi { inherit pname version; hash = "sha256-29/CC2yq+OXXpXC7G0Kia5pvjYI06R9cZfTb/gwOT1A="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "poetry>=1.6.1" "poetry-core" \ --replace-fail "poetry.masonry.api" "poetry.core.masonry.api" '';
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 = with lib; { 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 = licenses.mit; maintainers = [ maintainers.astro ]; };}