15 buildPythonPackage rec {
16 pname = "pytest-playwright";
20 disabled = pythonOlder "3.8";
22 src = fetchFromGitHub {
24 repo = "playwright-pytest";
26 hash = "sha256-/FTAnnVDf9fonNme5SM+9EKa39DtF64pclCts6tTjz0=";
30 pushd pytest-playwright
32 substituteInPlace pyproject.toml --replace-fail "==" ">="
40 buildInputs = [ pytest ];
48 # Most of the tests rely on network access, or on unavailable browsers such as
49 # msedge, chrome or webkit
54 export PLAYWRIGHT_BROWSERS_PATH=${playwright-driver.browsers}
57 pythonImportsCheck = [ "pytest_playwright" ];
60 description = "Pytest plugin to write end-to-end browser tests with Playwright";
61 homepage = "https://github.com/microsoft/playwright-pytest";
62 changelog = "https://github.com/microsoft/playwright-pytest/releases/tag/${src.tag}";
63 license = licenses.asl20;
64 maintainers = with maintainers; [ sephi ];