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,95 @@
{ lib
, appdirs
, buildPythonPackage
, certifi
, fetchFromGitHub
, importlib-metadata
, poetry-core
, pyee
, pytest-xdist
, pytestCheckHook
, pythonOlder
, syncer
, tqdm
, urllib3
, websockets
}:
buildPythonPackage rec {
pname = "pyppeteer";
version = "1.0.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "sha256-izMaWtJdkLHMQbyq7o7n46xB8dOHXZ5uO0UXt+twjL4=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
appdirs
certifi
importlib-metadata
pyee
tqdm
urllib3
websockets
];
checkInputs = [
syncer
pytest-xdist
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'pyee = "^8.1.0"' 'pyee = "*"' \
--replace 'websockets = "^9.1"' 'websockets = "*"'
'';
disabledTestPaths = [
# Requires network access
"tests/test_browser.py"
"tests/test_browser_context.py"
"tests/test_connection.py"
"tests/test_coverage.py"
"tests/test_dialog.py"
"tests/test_element_handle.py"
"tests/test_execution_context.py"
"tests/test_frame.py"
"tests/test_input.py"
"tests/test_launcher.py"
"tests/test_network.py"
"tests/test_page.py"
"tests/test_pyppeteer.py"
"tests/test_target.py"
"tests/test_tracing.py"
"tests/test_worker.py"
];
disabledTests = [
# Requires network access
"TestScreenShot"
"TestBrowserCrash"
"TestPDF"
];
pythonImportsCheck = [
"pyppeteer"
];
meta = with lib; {
description = "Headless chrome/chromium automation library (unofficial port of puppeteer)";
homepage = "https://github.com/pyppeteer/pyppeteer";
license = licenses.mit;
maintainers = with maintainers; [ kmein ];
};
}