depot/third_party/nixpkgs/pkgs/development/python-modules/playwright-stealth/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
913 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
playwright,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "playwright-stealth";
version = "1.0.6-unstable-2023-09-11";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "AtuboDad";
repo = "playwright_stealth";
# https://github.com/AtuboDad/playwright_stealth/issues/25
rev = "43f7433057906945b1648179304d7dbd8eb10874";
hash = "sha256-ZWmuVwjEgrPmfxjvws3TdocW6tyNH++fyRfKQ0oJ6bo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ playwright ];
# Tests require Chromium binary
doCheck = false;
pythonImportsCheck = [ "playwright_stealth" ];
meta = with lib; {
description = "Playwright stealth";
homepage = "https://github.com/AtuboDad/playwright_stealth";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}