depot/third_party/nixpkgs/pkgs/development/python-modules/ncclient/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
861 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
lxml,
paramiko,
pytestCheckHook,
pythonOlder,
six,
}:
buildPythonPackage rec {
pname = "ncclient";
version = "0.6.15";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-mdFoSTUS4QhY05rY0fqKTpRQTR9oLvOMTVr4kWJbiUQ=";
};
propagatedBuildInputs = [
paramiko
lxml
six
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ncclient" ];
meta = with lib; {
description = "Python library for NETCONF clients";
homepage = "https://github.com/ncclient/ncclient";
changelog = "https://github.com/ncclient/ncclient/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ xnaveira ];
};
}