Merge pull request #144813 from fabaff/fix-pyppeteer

python3Packages.pyppeteer: relax websockets constrain
This commit is contained in:
Thiago Kenji Okada 2021-11-05 22:51:57 -03:00 committed by GitHub
commit d1bf797a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
, appdirs
, buildPythonPackage
, fetchFromGitHub
, importlib-metadata
, poetry-core
, pyee
, pytest-xdist
@ -16,9 +17,10 @@
buildPythonPackage rec {
pname = "pyppeteer";
version = "0.2.6";
disabled = pythonOlder "3.6";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
@ -32,6 +34,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
appdirs
importlib-metadata
pyee
tqdm
urllib3
@ -44,6 +47,11 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'websockets = "^9.1"' 'websockets = "*"'
'';
disabledTestPaths = [
# Requires network access
"tests/test_browser.py"
@ -71,12 +79,14 @@ buildPythonPackage rec {
"TestPDF"
];
pythonImportsCheck = [ "pyppeteer" ];
pythonImportsCheck = [
"pyppeteer"
];
meta = {
meta = with lib; {
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 ];
license = licenses.mit;
maintainers = with maintainers; [ kmein ];
};
}