depot/third_party/nixpkgs/pkgs/development/python-modules/ncclient/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

39 lines
705 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, paramiko
, selectors2
, lxml
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ncclient";
version = "0.6.12";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1sjvqaxb54nmqljiw5bg1423msa9rg015wiix9fsm6djk3wpklmk";
};
propagatedBuildInputs = [
paramiko
lxml
selectors2
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "ncclient" ];
meta = with lib; {
homepage = "https://github.com/ncclient/ncclient";
description = "Python library for NETCONF clients";
license = licenses.asl20;
maintainers = with maintainers; [ xnaveira ];
};
}