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,79 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, substituteAll
, git
, eradicate
, mccabe
, mypy
, pycodestyle
, pydocstyle
, pyflakes
, vulture
, isort
, pylint
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pylama";
version = "8.3.8";
format = "setuptools";
src = fetchFromGitHub {
name = "${pname}-${version}-source";
owner = "klen";
repo = "pylama";
rev = version;
hash = "sha256-g6Lq5NaieUI/alxqoVFfL5VaCHwB/jLcp02/N1W69yE=";
};
patches = [
(substituteAll {
src = ./paths.patch;
git = "${lib.getBin git}/bin/git";
})
];
propagatedBuildInputs = [
eradicate
mccabe
mypy
pycodestyle
pydocstyle
pyflakes
vulture
];
checkInputs = [
# avoid infinite recursion pylint -> isort -> pylama
(pylint.override {
isort = isort.overridePythonAttrs (old: {
doCheck = false;
});
})
pytestCheckHook
];
preCheck = ''
export HOME=$TEMP
'';
disabledTests = [
"test_quotes" # FIXME package pylama-quotes
"test_radon" # FIXME package radon
];
pythonImportsCheck = [
"pylama.main"
];
meta = with lib; {
description = "Code audit tool for python";
homepage = "https://github.com/klen/pylama";
changelog = "https://github.com/klen/pylama/blob/${version}/Changelog";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}