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,34 @@
{ lib, buildPythonPackage, python, glibcLocales, fetchFromGitHub, six, simplejson }:
buildPythonPackage rec {
pname = "mail-parser";
version = "3.15.0";
src = fetchFromGitHub {
owner = "SpamScope";
repo = pname;
rev = "v${version}";
sha256 = "0da2qr4p8jnjw6jdhbagm6slfcjnjyyjkszwfcfqvcywh1zm1sdw";
};
LC_ALL = "en_US.utf-8";
nativeBuildInputs = [ glibcLocales ];
propagatedBuildInputs = [ simplejson six ];
# Taken from .travis.yml
checkPhase = ''
${python.interpreter} tests/test_main.py
${python.interpreter} -m mailparser -v
${python.interpreter} -m mailparser -h
${python.interpreter} -m mailparser -f tests/mails/mail_malformed_3 -j
cat tests/mails/mail_malformed_3 | ${python.interpreter} -m mailparser -k -j
'';
meta = with lib; {
description = "A mail parser for python 2 and 3";
homepage = "https://github.com/SpamScope/mail-parser";
license = licenses.asl20;
maintainers = with maintainers; [ psyanticy ];
};
}