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,45 @@
{ cffi
, six
, enum34
, hypothesis
, pytest
, wheel
, buildPythonPackage
, fetchPypi
, isPy3k
, lib
, stdenv
, argon2-cffi-bindings
}:
buildPythonPackage rec {
pname = "argon2-cffi";
version = "21.3.0";
format = "flit";
src = fetchPypi {
inherit pname version;
sha256 = "d384164d944190a7dd7ef22c6aa3ff197da12962bd04b17f64d4e93d934dba5b";
};
propagatedBuildInputs = [ cffi six argon2-cffi-bindings ]
++ lib.optional (!isPy3k) enum34;
propagatedNativeBuildInputs = [
argon2-cffi-bindings
cffi
];
ARGON2_CFFI_USE_SSE2 = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) "0";
checkInputs = [ hypothesis pytest wheel ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
description = "Secure Password Hashes for Python";
homepage = "https://argon2-cffi.readthedocs.io/";
license = licenses.mit;
};
}