summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pypasser/default.nix
blob: 47c1fbe3929401148b9ccbb1c4f9d47400480ef0 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pythonRelaxDepsHook,
  pydub,
  pysocks,
  requests,
  selenium,
  speechrecognition,
}:

buildPythonPackage rec {
  pname = "pypasser";
  version = "0.0.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "xHossein";
    repo = "PyPasser";
    tag = version;
    hash = "sha256-vqa+Xap9dYvjJMiGNGNmegh7rmAqwf3//MH47xwr/T0=";
  };

  build-system = [ setuptools ];

  nativeBuildInputs = [
    pythonRelaxDepsHook
  ];

  pythonRelaxDeps = [
    "speechrecognition"
  ];

  dependencies = [
    pydub
    pysocks
    requests
    selenium
    speechrecognition
  ];

  pythonImportsCheck = [
    "pypasser"
    "pypasser.reCaptchaV2"
    "pypasser.reCaptchaV3"
  ];

  # Package has no tests
  doCheck = false;

  meta = {
    description = "Bypassing reCaptcha V3 by sending HTTP requests & solving reCaptcha V2 using speech to text";
    homepage = "https://github.com/xHossein/PyPasser";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}