Commit 25669ed7 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #216174 from alyssais/hangups

python3.pkgs.hangups: drop
parents ed237250 d9eb9d49
Loading
Loading
Loading
Loading
+0 −70
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, configargparse
, aiohttp
, async-timeout
, appdirs
, readlike
, requests
, reparser
, protobuf
, urwid
, mechanicalsoup
, httpretty
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "hangups";
  version = "0.4.18";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "tdryer";
    repo = "hangups";
    rev = "v${version}";
    hash = "sha256-vq1OrOUPMQtezBFlisP2f/bvvYprDjhOuwUcT8rmIvw=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "protobuf>=3.1.0,<4" "protobuf" \
      --replace "MechanicalSoup>=0.6.0,<0.13" "MechanicalSoup"
  '';

  propagatedBuildInputs = [
    configargparse
    aiohttp
    async-timeout
    appdirs
    readlike
    requests
    reparser
    protobuf
    urwid
    mechanicalsoup
  ];

  nativeCheckInputs = [
    httpretty
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "hangups"
    "hangups.client"
    "hangups.event"
    "hangups.parsers"
    "hangups.user"
  ];

  meta = with lib; {
    description = "The first third-party instant messaging client for Google Hangouts";
    homepage = "https://github.com/tdryer/hangups";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -102,6 +102,7 @@ mapAliases ({
  grpc_google_iam_v1 = grpc-google-iam-v1; # added 2021-08-21
  ha-av = throw "ha-av was removed, because it is no longer maintained"; # added 2022-04-06
  HAP-python = hap-python; # added 2021-06-01
  hangups = throw "hangups was removed because Google Hangouts has been shut down"; # added 2023-02-13
  hbmqtt = throw "hbmqtt was removed because it is no longer maintained"; # added 2021-11-07
  hdlparse = throw "hdlparse has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
  hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29
+0 −2
Original line number Diff line number Diff line
@@ -4242,8 +4242,6 @@ self: super: with self; {

  handout = callPackage ../development/python-modules/handout { };

  hangups = callPackage ../development/python-modules/hangups { };

  hap-python = callPackage ../development/python-modules/hap-python { };

  hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { };