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,27 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "mss";
version = "6.1.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "aebd069f3e05667fe9c7b9fa4b1771fe42a4710ce1058ce0236936ce06fa5394";
};
# By default it attempts to build Windows-only functionality
prePatch = ''
rm mss/windows.py
'';
# Skipping tests due to most relying on DISPLAY being set
pythonImportsCheck = [ "mss" ];
meta = with lib; {
description = "Cross-platform multiple screenshots module in pure Python";
homepage = "https://github.com/BoboTiG/python-mss";
license = licenses.mit;
maintainers = with maintainers; [ austinbutler ];
};
}