about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ncclient/default.nix
blob: 2cb040ed8a38db6860261cd5d957ec55086f9b61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ 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
  ];

  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 ];
  };
}