Merge pull request #144813 from fabaff/fix-pyppeteer

python3Packages.pyppeteer: relax websockets constrain

authored by Thiago Kenji Okada and committed by GitHub d1bf797a 42176142

+15 -5
+15 -5
pkgs/development/python-modules/pyppeteer/default.nix
··· 2 , appdirs 3 , buildPythonPackage 4 , fetchFromGitHub 5 , poetry-core 6 , pyee 7 , pytest-xdist ··· 16 buildPythonPackage rec { 17 pname = "pyppeteer"; 18 version = "0.2.6"; 19 disabled = pythonOlder "3.6"; 20 - format = "pyproject"; 21 22 src = fetchFromGitHub { 23 owner = pname; ··· 32 33 propagatedBuildInputs = [ 34 appdirs 35 pyee 36 tqdm 37 urllib3 ··· 43 pytest-xdist 44 pytestCheckHook 45 ]; 46 47 disabledTestPaths = [ 48 # Requires network access ··· 71 "TestPDF" 72 ]; 73 74 - pythonImportsCheck = [ "pyppeteer" ]; 75 76 - meta = { 77 description = "Headless chrome/chromium automation library (unofficial port of puppeteer)"; 78 homepage = "https://github.com/pyppeteer/pyppeteer"; 79 - license = lib.licenses.mit; 80 - maintainers = with lib.maintainers; [ kmein ]; 81 }; 82 }
··· 2 , appdirs 3 , buildPythonPackage 4 , fetchFromGitHub 5 + , importlib-metadata 6 , poetry-core 7 , pyee 8 , pytest-xdist ··· 17 buildPythonPackage rec { 18 pname = "pyppeteer"; 19 version = "0.2.6"; 20 + format = "pyproject"; 21 + 22 disabled = pythonOlder "3.6"; 23 24 src = fetchFromGitHub { 25 owner = pname; ··· 34 35 propagatedBuildInputs = [ 36 appdirs 37 + importlib-metadata 38 pyee 39 tqdm 40 urllib3 ··· 46 pytest-xdist 47 pytestCheckHook 48 ]; 49 + 50 + postPatch = '' 51 + substituteInPlace pyproject.toml \ 52 + --replace 'websockets = "^9.1"' 'websockets = "*"' 53 + ''; 54 55 disabledTestPaths = [ 56 # Requires network access ··· 79 "TestPDF" 80 ]; 81 82 + pythonImportsCheck = [ 83 + "pyppeteer" 84 + ]; 85 86 + meta = with lib; { 87 description = "Headless chrome/chromium automation library (unofficial port of puppeteer)"; 88 homepage = "https://github.com/pyppeteer/pyppeteer"; 89 + license = licenses.mit; 90 + maintainers = with maintainers; [ kmein ]; 91 }; 92 }