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,59 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, fonttools
, lxml, fs # for fonttools extras
, setuptools-scm
, pytestCheckHook, pytest-cov, pytest-xdist
, runAllTests ? false, psautohint # for passthru.tests
}:
buildPythonPackage rec {
pname = "psautohint";
version = "2.4.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "adobe-type-tools";
repo = pname;
rev = "v${version}";
sha256 = "125nx7accvbk626qlfar90va1995kp9qfrz6a978q4kv2kk37xai";
fetchSubmodules = true; # data dir for tests
};
postPatch = ''
echo '#define PSAUTOHINT_VERSION "${version}"' > libpsautohint/src/version.h
sed -i '/use_scm_version/,+3d' setup.py
sed -i '/setup(/a \ version="${version}",' setup.py
'';
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ fonttools lxml fs ];
checkInputs = [
pytestCheckHook
pytest-cov
pytest-xdist
];
disabledTests = lib.optionals (!runAllTests) [
# Slow tests, reduces test time from ~5 mins to ~30s
"test_mmufo"
"test_flex_ufo"
"test_ufo"
"test_flex_otf"
"test_multi_outpath"
"test_mmhint"
"test_otf"
];
passthru.tests = {
fullTestsuite = psautohint.override { runAllTests = true; };
};
meta = with lib; {
description = "Script to normalize the XML and other data inside of a UFO";
homepage = "https://github.com/adobe-type-tools/psautohint";
license = licenses.bsd3;
maintainers = [ maintainers.sternenseemann ];
};
}