depot/third_party/nixpkgs/pkgs/development/python-modules/junos-eznc/default.nix

73 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchpatch
, fetchFromGitHub
# propagates
, jinja2
, lxml
, ncclient
, netaddr
, ntc-templates
, paramiko
, pyparsing
, pyserial
, pyyaml
, scp
, six
, transitions
, yamlordereddictloader
# tests
, mock
, nose
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "junos-eznc";
version = "2.6.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "Juniper";
repo = "py-junos-eznc";
rev = version;
hash = "sha256-BoHT6ejccInfREbYtW6psm3fvsQxLS1vpj/aPDqqpnY=";
};
propagatedBuildInputs = [
jinja2
lxml
ncclient
netaddr
ntc-templates
paramiko
pyparsing
pyserial
pyyaml
scp
six
transitions
yamlordereddictloader
];
checkInputs = [
mock
nose
];
checkPhase = ''
nosetests -v -a unit --exclude=test_sw_put_ftp
'';
pythonImportsCheck = [ "jnpr.junos" ];
meta = with lib; {
homepage = "https://github.com/Juniper/py-junos-eznc";
description = "Junos 'EZ' automation for non-programmers";
license = licenses.asl20;
maintainers = with maintainers; [ xnaveira ];
};
}