uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
85
pkgs/development/python-modules/junos-eznc/default.nix
Normal file
85
pkgs/development/python-modules/junos-eznc/default.nix
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
{ 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.3";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Juniper";
|
||||
repo = "py-junos-eznc";
|
||||
rev = version;
|
||||
hash = "sha256-XhQJwtS518AzSwyaWE392nfNdYe9+iYHvXxQsjJfzI8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# Fixes tests with lxml>=4.8.0; remove > 2.6.3
|
||||
url = "https://github.com/Juniper/py-junos-eznc/commit/048f750bb7357b6f6b9db8ad64bea479298c74fb.patch";
|
||||
hash = "sha256-DYVj0BNPwDSbxDrzHhaq4F4kz1bliXB6Au3I63mRauc=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "ncclient==0.6.9" "ncclient"
|
||||
'';
|
||||
|
||||
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 = "http://www.github.com/Juniper/py-junos-eznc";
|
||||
description = "Junos 'EZ' automation for non-programmers";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ xnaveira ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue