1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lxml,
6 paramiko,
7 setuptools,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "ncclient";
14 version = "0.6.19";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "ncclient";
21 repo = "ncclient";
22 tag = "v${version}";
23 hash = "sha256-ZAZMazf1PB54MbHyhSuSpg0IWSSqinE2DvHD+L8GKu8=";
24 };
25
26 build-system = [
27 setuptools
28 ];
29
30 dependencies = [
31 paramiko
32 lxml
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "ncclient" ];
38
39 meta = with lib; {
40 description = "Python library for NETCONF clients";
41 homepage = "https://github.com/ncclient/ncclient";
42 changelog = "https://github.com/ncclient/ncclient/releases/tag/${src.tag}";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ xnaveira ];
45 };
46}