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,48 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, six
, pytestCheckHook
, mock
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "promise";
version = "2.3.0";
src = fetchFromGitHub {
owner = "syrusakbary";
repo = "promise";
rev = "v${version}";
sha256 = "17mq1bm78xfl0x1g50ng502m5ldq6421rzz35hlqafsj0cq8dkp6";
};
postPatch = ''
substituteInPlace tests/test_extra.py \
--replace "assert_exc.traceback[-1].path.strpath" "str(assert_exc.traceback[-1].path)"
'';
propagatedBuildInputs = [
six
];
checkInputs = [
pytestCheckHook
mock
pytest-asyncio
];
disabledTestPaths = [
"tests/test_benchmark.py"
];
meta = with lib; {
description = "Ultra-performant Promise implementation in Python";
homepage = "https://github.com/syrusakbary/promise";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}