python3Packages.pyppeteer: relax websockets constrain
This commit is contained in:
parent
d2c613620d
commit
88e646ef28
1 changed files with 15 additions and 5 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue