2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, appdirs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pyee
|
|
|
|
, pytest-xdist
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, syncer
|
|
|
|
, tqdm
|
|
|
|
, urllib3
|
|
|
|
, websockets
|
|
|
|
}:
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyppeteer";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "0.2.6";
|
2021-05-28 09:39:13 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "pyproject";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-mMFQp8GMjKUc3yyB4c8Tgxut7LkMFa2cySO3iSA/aI4=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
pyee
|
2021-05-28 09:39:13 +00:00
|
|
|
tqdm
|
2020-11-19 00:13:47 +00:00
|
|
|
urllib3
|
2021-05-28 09:39:13 +00:00
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
syncer
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
2020-11-19 00:13:47 +00:00
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
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" ];
|
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
meta = {
|
|
|
|
description = "Headless chrome/chromium automation library (unofficial port of puppeteer)";
|
|
|
|
homepage = "https://github.com/pyppeteer/pyppeteer";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ kmein ];
|
|
|
|
};
|
|
|
|
}
|