diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-21 10:23:29 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-21 11:00:17 +0100 |
commit | 29c51b9e3ea1aa01340fc62a1d611ab4733849fc (patch) | |
tree | e801f932ca38370900bb95cb33cd045a1e10ff8a | |
parent | 71731f7967fa4e339eb006d352c5388e451203c8 (diff) | |
download | nixlib-29c51b9e3ea1aa01340fc62a1d611ab4733849fc.tar nixlib-29c51b9e3ea1aa01340fc62a1d611ab4733849fc.tar.gz nixlib-29c51b9e3ea1aa01340fc62a1d611ab4733849fc.tar.bz2 nixlib-29c51b9e3ea1aa01340fc62a1d611ab4733849fc.tar.lz nixlib-29c51b9e3ea1aa01340fc62a1d611ab4733849fc.tar.xz nixlib-29c51b9e3ea1aa01340fc62a1d611ab4733849fc.tar.zst nixlib-29c51b9e3ea1aa01340fc62a1d611ab4733849fc.zip |
python311Packages.playwright-stealth: init at 1.0.6-unstable-2023-09-11
Playwright stealth https://github.com/AtuboDad/playwright_stealth
-rw-r--r-- | pkgs/development/python-modules/playwright-stealth/default.nix | 45 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/playwright-stealth/default.nix b/pkgs/development/python-modules/playwright-stealth/default.nix new file mode 100644 index 000000000000..a805d36f432f --- /dev/null +++ b/pkgs/development/python-modules/playwright-stealth/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 010704efbb8f..9a7d4c827994 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9655,6 +9655,8 @@ self: super: with self; { playwright = callPackage ../development/python-modules/playwright { }; + playwright-stealth = callPackage ../development/python-modules/playwright-stealth { }; + pmsensor = callPackage ../development/python-modules/pmsensor { }; ppdeep = callPackage ../development/python-modules/ppdeep { }; |