Personal-use NixOS configuration
at main 55 lines 1.0 kB view raw
1{ 2 pkgs, 3 lib, 4 python3, 5 fetchPypi, 6 captcha-python-async, 7}: 8 9python3.pkgs.buildPythonPackage rec { 10 pname = "playwright-captcha"; 11 version = "0.1.1"; 12 pyproject = true; 13 14 src = fetchPypi { 15 pname = "playwright_captcha"; 16 inherit version; 17 hash = "sha256-6PLsfn2rhLu6UFPVaq3MEDD+dsGlMUYlzSVM0Amludc="; 18 }; 19 20 build-system = with python3.pkgs; [ 21 setuptools 22 poetry-core 23 ]; 24 25 nativeBuildInputs = with pkgs; [ 26 dos2unix 27 ]; 28 29 dependencies = with python3.pkgs; [ 30 playwright 31 platformdirs 32 captcha-python-async 33 ]; 34 35 prePatch = '' 36 dos2unix ./playwright_captcha/utils/camoufox_add_init_script/add_init_script.py 37 ''; 38 39 patches = [ 40 ./use_cache_for_scripts.patch 41 ]; 42 43 patchFlags = [ 44 "-p1" 45 ]; 46 47 pythonImportsCheck = [ "playwright_captcha" ]; 48 49 meta = { 50 description = "Automating captcha solving for Playwright"; 51 homepage = "https://github.com/techinz/playwright-captcha"; 52 license = lib.licenses.asl20; 53 maintainers = with lib.maintainers; [ encode42 ]; 54 }; 55}