1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, lxml
5, paramiko
6, pytestCheckHook
7, pythonOlder
8, six
9}:
10
11buildPythonPackage rec {
12 pname = "ncclient";
13 version = "0.6.13";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = pname;
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-NrilXB1NFcqNCGrwshhuLdhQoeHJ12PSp4MBScT9kYc=";
23 };
24
25 propagatedBuildInputs = [
26 paramiko
27 lxml
28 six
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "ncclient"
37 ];
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/v${version}";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ xnaveira ];
45 };
46}