Merge pull request #36215 from xnaveira/py-junos-eznc

Py junos eznc
This commit is contained in:
Jörg Thalheim 2018-03-03 17:35:58 +00:00 committed by GitHub
commit fe2acc2b2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 124 additions and 0 deletions

View File

@ -775,6 +775,7 @@
wyvie = "Elijah Rum <elijahrum@gmail.com>";
xaverdh = "Dominik Xaver Hörl <hoe.dom@gmx.de>";
xeji = "xeji <xeji@cat3.de>";
xnaveira = "Xavier Naveira <xnaveira@gmail.com>";
xnwdd = "Guillermo NWDD <nwdd+nixos@no.team>";
xurei = "Olivier Bourdoux <olivier.bourdoux@gmail.com>";
xvapx = "Marti Serra <marti.serra.coscollano@gmail.com>";

View File

@ -0,0 +1,42 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
, scp
, pyserial
, paramiko
, netaddr
, ncclient
, lxml
, jinja2
, pyyaml
, nose
}:
buildPythonPackage rec {
pname = "junos-eznc";
version = "2.1.7";
src = fetchPypi {
inherit pname version;
sha256 = "95a037cdd05618a189517357e46a06886909a18c7923b628c6ac43d5f54b2912";
};
checkInputs = [ nose ];
propagatedBuildInputs = [
scp six pyserial paramiko netaddr ncclient lxml jinja2 pyyaml
];
checkPhase = ''
nosetests -v --with-coverage --cover-package=jnpr.junos --cover-inclusive -a unit
'';
meta = with stdenv.lib; {
homepage = http://www.github.com/Juniper/py-junos-eznc;
description = "Junos 'EZ' automation for non-programmers";
license = licenses.asl20;
maintainers = with maintainers; [ xnaveira ];
};
}

View File

@ -0,0 +1,41 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, paramiko
, lxml
, libxml2
, libxslt
, pytest
, nose
, rednose
}:
buildPythonPackage rec {
pname = "ncclient";
version = "0.5.3";
src = fetchPypi {
inherit pname version;
sha256 = "fe6b9c16ed5f1b21f5591da74bfdd91a9bdf69eb4e918f1c06b3c8db307bd32b";
};
checkInputs = [ nose rednose ];
propagatedBuildInputs = [
paramiko lxml libxml2 libxslt
];
checkPhase = ''
nosetests test --rednose --verbosity=3 --with-coverage --cover-package ncclient
'';
#Unfortunately the test hangs at te end
doCheck = false;
meta = with stdenv.lib; {
homepage = http://ncclient.org/;
description = "Python library for NETCONF clients";
license = licenses.asl20;
maintainers = with maintainers; [ xnaveira ];
};
}

View File

@ -0,0 +1,34 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, paramiko
, python
}:
buildPythonPackage rec {
pname = "scp";
version = "0.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "18f59e48df67fac0b069591609a0f4d50d781a101ddb8ec705f0c2e3501a8386";
};
propagatedBuildInputs = [
paramiko
];
checkPhase = ''
SCPPY_PORT=10022 ${python.interpreter} test.py
'';
#The Pypi package doesn't include the test
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/jbardin/scp.py;
description = "SCP module for paramiko";
license = licenses.lgpl3;
maintainers = with maintainers; [ xnaveira ];
};
}

View File

@ -5639,6 +5639,8 @@ in {
};
};
ncclient = callPackage ../development/python-modules/ncclient {};
logfury = callPackage ../development/python-modules/logfury { };
ndg-httpsclient = buildPythonPackage rec {
@ -6271,6 +6273,8 @@ in {
};
};
junos-eznc = callPackage ../development/python-modules/junos-eznc {};
raven = callPackage ../development/python-modules/raven { };
rethinkdb = buildPythonPackage rec {
@ -15306,6 +15310,8 @@ in {
inherit (pkgs) gfortran glibcLocales;
};
scp = callPackage ../development/python-modules/scp {};
scripttest = buildPythonPackage rec {
version = "1.3";
name = "scripttest-${version}";