about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/playwright-stealth/default.nix
blob: a805d36f432f53498fa351b6f97662d73851d692 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ 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 ];
  };
}