python3Packages.patchright: init at 1.58.0

Undetected Python version of the Playwright testing and automation
library

https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-python
This commit is contained in:
Fabian Affolter
2026-07-03 00:30:08 +02:00
parent 20701d5422
commit 2920ff399d
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
playwright,
setuptools,
toml,
}:
buildPythonPackage (finalAttrs: {
pname = "patchright";
version = "1.58.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Kaliiiiiiiiii-Vinyzu";
repo = "patchright-python";
tag = "v${finalAttrs.version}";
hash = "sha256-msV0CbVbTDSAB1BgxkUOpuzQDr8vMK2/wxJy1SSUU80=";
};
build-system = [ setuptools ];
dependencies = [
playwright
toml
];
# Module has no tests
doCheck = false;
# pythonImportsCheck disabled: module attempts filesystem writes at import time
pythonImportsCheck = [ ];
meta = {
description = "Undetected Python version of the Playwright testing and automation library";
homepage = "https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-python";
changelog = "https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-python/releases/tag/v${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})

View File

@@ -12563,6 +12563,8 @@ self: super: with self; {
patchpy = callPackage ../development/python-modules/patchpy { };
patchright = callPackage ../development/python-modules/patchright { };
path = callPackage ../development/python-modules/path { };
path-and-address = callPackage ../development/python-modules/path-and-address { };