Skip to content

Commit

Permalink
python3Packages.hangups: init at 0.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Jun 19, 2021
1 parent fd6e2d8 commit 07d5520
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
70 changes: 70 additions & 0 deletions pkgs/development/python-modules/hangups/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, configargparse
, aiohttp
, async-timeout
, appdirs
, readlike
, requests
, reparser
, protobuf
, urwid
, mechanicalsoup
, httpretty
, pytestCheckHook
}:

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

disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "tdryer";
repo = "hangups";
rev = "v${version}";
sha256 = "14njagpdp13zlaqnwl2mh7fkpnsaqr6wkr4lwh608v06pkwwcwcm";
};

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

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

checkInputs = [
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3174,6 +3174,8 @@ in {

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 { };
Expand Down

0 comments on commit 07d5520

Please sign in to comment.