Unverified Commit 53abb119 authored by Hendrik Sokolowski's avatar Hendrik Sokolowski
Browse files

python3Packages.glocaltokens: init at 0.7.3

parent 38e15cc8
Loading
Loading
Loading
Loading
+69 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build system
  hatchling,
  hatch-vcs,

  # dependencies
  ghome-foyer-api,
  gpsoauth,
  grpcio,
  requests,
  simplejson,
  zeroconf,

  # test dependencies
  pytestCheckHook,
  faker,
}:

buildPythonPackage rec {
  pname = "glocaltokens";
  version = "0.7.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "leikoilja";
    repo = "glocaltokens";
    tag = "v${version}";
    hash = "sha256-wX0L9sNjPbd5lXtFs5B3DG3gtZKhlZG9bnnBKV32rSE=";
  };

  build-system = [
    hatchling
    hatch-vcs
  ];

  dependencies = [
    ghome-foyer-api
    gpsoauth
    grpcio
    requests
    simplejson
    zeroconf
  ];

  nativeCheckInputs = [
    pytestCheckHook
    faker
  ];

  pythonImportsCheck = [
    "glocaltokens"
    "glocaltokens.client"
    "glocaltokens.scanner"
  ];

  meta = {
    description = "Library to extract google home devices local authentication tokens from google servers";
    homepage = "https://github.com/leikoilja/glocaltokens";
    changelog = "https://github.com/leikoilja/glocaltokens/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      hensoko
    ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -5360,6 +5360,8 @@ self: super: with self; {
  globus-sdk = callPackage ../development/python-modules/globus-sdk { };
  glocaltokens = callPackage ../development/python-modules/glocaltokens { };
  glom = callPackage ../development/python-modules/glom { };
  glueviz = callPackage ../development/python-modules/glueviz { };