Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / netmiko / default.nix
blobf893ce204455b9f3ef124391f31393c417f73cd3
1 { lib
2 , buildPythonPackage
3 , fetchPypi
5 # build-system
6 , poetry-core
8 # dependencies
9 , ntc-templates
10 , paramiko
11 , pyserial
12 , pyyaml
13 , scp
14 , textfsm
17 buildPythonPackage rec {
18   pname = "netmiko";
19   version = "4.3.0";
20   pyproject = true;
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-2pD2798ztBQOts1/InJ3PCzhRPp0rDTV7KwbTUYH8fs=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace "poetry==1.3.2" "poetry-core" \
30       --replace "poetry.masonry.api" "poetry.core.masonry.api"
31   '';
33   nativeBuildInputs = [
34     poetry-core
35   ];
37   propagatedBuildInputs = [
38     ntc-templates
39     paramiko
40     pyserial
41     pyyaml
42     scp
43     textfsm
44   ];
46   # tests require closed-source pyats and genie packages
47   doCheck = false;
49   meta = with lib; {
50     description =
51       "Multi-vendor library to simplify Paramiko SSH connections to network devices";
52     homepage = "https://github.com/ktbyers/netmiko/";
53     license = licenses.mit;
54     maintainers = [ maintainers.astro ];
55   };