2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-03-02 15:33:07 +01:00
|
|
|
, buildPythonPackage
|
2021-06-22 09:40:59 +02:00
|
|
|
, fetchFromGitHub
|
2018-03-02 15:33:07 +01:00
|
|
|
, paramiko
|
2018-09-06 20:51:24 +02:00
|
|
|
, selectors2
|
2018-03-02 15:33:07 +01:00
|
|
|
, lxml
|
2021-06-22 09:40:59 +02:00
|
|
|
, pytestCheckHook
|
2018-03-02 15:33:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ncclient";
|
2021-06-22 09:40:59 +02:00
|
|
|
version = "0.6.12";
|
2018-03-02 15:33:07 +01:00
|
|
|
|
2021-06-22 09:40:59 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1sjvqaxb54nmqljiw5bg1423msa9rg015wiix9fsm6djk3wpklmk";
|
2018-03-02 15:33:07 +01:00
|
|
|
};
|
|
|
|
|
2018-03-02 15:34:20 +01:00
|
|
|
propagatedBuildInputs = [
|
2021-06-22 09:40:59 +02:00
|
|
|
paramiko
|
|
|
|
lxml
|
|
|
|
selectors2
|
2018-03-02 15:33:07 +01:00
|
|
|
];
|
|
|
|
|
2021-06-22 09:40:59 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-03-02 15:34:20 +01:00
|
|
|
|
2021-06-22 09:40:59 +02:00
|
|
|
pythonImportsCheck = [ "ncclient" ];
|
2018-03-02 15:34:20 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-12-08 17:50:31 +01:00
|
|
|
homepage = "https://github.com/ncclient/ncclient";
|
2018-03-02 15:33:07 +01:00
|
|
|
description = "Python library for NETCONF clients";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ xnaveira ];
|
|
|
|
};
|
|
|
|
}
|