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,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, bitarray
, eth-abi
, eth-keyfile
, eth-keys
, eth-rlp
, eth-utils
, hexbytes
, pythonOlder
, rlp
}:
buildPythonPackage rec {
pname = "eth-account";
version = "0.6.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-account";
rev = "v${version}";
sha256 = "sha256-cjQvTKC4lDbKnAvbmnTGHQiJZsZFhXc/+UH5rUdlGxs=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "bitarray>=1.2.1,<1.3.0" "bitarray>=2.4.0,<3"
'';
propagatedBuildInputs = [
bitarray
eth-abi
eth-keyfile
eth-keys
eth-rlp
eth-utils
hexbytes
rlp
];
# require buildinga npm project
doCheck = false;
pythonImportsCheck = [ "eth_account" ];
meta = with lib; {
description = "Account abstraction library for web3.py";
homepage = "https://github.com/ethereum/eth-account";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}