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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, poetry-core
, textfsm
, pytestCheckHook
, ruamel-yaml
, yamllint
}:
buildPythonPackage rec {
pname = "ntc-templates";
version = "3.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "networktocode";
repo = pname;
rev = "v${version}";
sha256 = "0kijzmmvq2rw7ima19w7lyb2p26a5w52k70fzbkaqqw78qzw8178";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
textfsm
];
checkInputs = [
pytestCheckHook
ruamel-yaml
yamllint
];
# https://github.com/networktocode/ntc-templates/issues/743
disabledTests = [
"test_raw_data_against_mock"
"test_verify_parsed_and_reference_data_exists"
];
meta = with lib; {
description = "TextFSM templates for parsing show commands of network devices";
homepage = "https://github.com/networktocode/ntc-templates";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}