depot/third_party/nixpkgs/pkgs/development/python-modules/ncclient/default.nix
Default email 5557ff764c Project import generated by Copybara.
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
2023-02-22 11:55:15 +01:00

46 lines
863 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, lxml
, paramiko
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "ncclient";
version = "0.6.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-NrilXB1NFcqNCGrwshhuLdhQoeHJ12PSp4MBScT9kYc=";
};
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 ];
};
}