Unverified Commit f3c2c6be authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.tami4edgeapi: init at 3.0 (#432420)

parents a29b0868 d0214a34
Loading
Loading
Loading
Loading
+59 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+46 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pyjwt,
  pypasser,
  requests,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "tami4edgeapi";
  version = "3.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Guy293";
    repo = "Tami4EdgeAPI";
    tag = "v${version}";
    hash = "sha256-rhJ8L6qLDnO50Xp2eqquRinDTQjMxWVSjNL5GQI1gvM=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pyjwt
    pypasser
    requests
  ];

  # Package has no tests
  doCheck = false;

  pythonImportsCheck = [ "Tami4EdgeAPI" ];

  meta = {
    description = "Python API client for Tami4 Edge / Edge+ devices";
    homepage = "https://github.com/Guy293/Tami4EdgeAPI";
    changelog = "https://github.com/Guy293/Tami4EdgeAPI/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -5820,7 +5820,8 @@
      ];
    "tami4" =
      ps: with ps; [
      ]; # missing inputs: Tami4EdgeAPI
        tami4edgeapi
      ];
    "tank_utility" =
      ps: with ps; [
        tank-utility
@@ -7679,6 +7680,7 @@
    "tag"
    "tailscale"
    "tailwind"
    "tami4"
    "tankerkoenig"
    "tasmota"
    "tautulli"
+4 −0
Original line number Diff line number Diff line
@@ -13521,6 +13521,8 @@ self: super: with self; {
  pypass = callPackage ../development/python-modules/pypass { };
  pypasser = callPackage ../development/python-modules/pypasser { };
  pypblib = callPackage ../development/python-modules/pypblib { };
  pypca = callPackage ../development/python-modules/pypca { };
@@ -17676,6 +17678,8 @@ self: super: with self; {
  takethetime = callPackage ../development/python-modules/takethetime { };
  tami4edgeapi = callPackage ../development/python-modules/tami4edgeapi { };
  tank-utility = callPackage ../development/python-modules/tank-utility { };
  tappy = callPackage ../development/python-modules/tappy { };