diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-05 15:23:10 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-06 00:21:48 +0100 |
commit | 88e646ef28ae1fdc29351b0b172858620edb0d24 (patch) | |
tree | b1d71c6a59c5b3b61f82fb8b030ec6bf75363260 /pkgs/development/python-modules/pyppeteer | |
parent | d2c613620d7676d51a030edbc67cc39683a7867b (diff) |
python3Packages.pyppeteer: relax websockets constrain
Diffstat (limited to 'pkgs/development/python-modules/pyppeteer')
-rw-r--r-- | pkgs/development/python-modules/pyppeteer/default.nix | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/pyppeteer/default.nix b/pkgs/development/python-modules/pyppeteer/default.nix index 37a40f867bda9..153be45ca8f56 100644 --- a/pkgs/development/python-modules/pyppeteer/default.nix +++ b/pkgs/development/python-modules/pyppeteer/default.nix @@ -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 ]; }; } |