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