mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
python3Packages.netmiko: 4.2.0 -> 4.3.0
This commit is contained in:
parent
2b47bd728f
commit
0effd219d7
@ -1,18 +1,47 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, setuptools, paramiko, scp, tenacity
|
{ lib
|
||||||
, textfsm, ntc-templates, pyserial, pytestCheckHook, pyyaml }:
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
|
||||||
|
# build-system
|
||||||
|
, poetry-core
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
, ntc-templates
|
||||||
|
, paramiko
|
||||||
|
, pyserial
|
||||||
|
, pyyaml
|
||||||
|
, scp
|
||||||
|
, textfsm
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "netmiko";
|
pname = "netmiko";
|
||||||
version = "4.2.0";
|
version = "4.3.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-et3m/j6mMzYij0moY2UMLYP7DmgODw0Vi1sPsExBAOE=";
|
hash = "sha256-2pD2798ztBQOts1/InJ3PCzhRPp0rDTV7KwbTUYH8fs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptools ];
|
postPatch = ''
|
||||||
propagatedBuildInputs = [ paramiko scp tenacity pyyaml textfsm ntc-templates pyserial ];
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace "poetry==1.3.2" "poetry-core" \
|
||||||
|
--replace "poetry.masonry.api" "poetry.core.masonry.api"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
ntc-templates
|
||||||
|
paramiko
|
||||||
|
pyserial
|
||||||
|
pyyaml
|
||||||
|
scp
|
||||||
|
textfsm
|
||||||
|
];
|
||||||
|
|
||||||
# tests require closed-source pyats and genie packages
|
# tests require closed-source pyats and genie packages
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user