git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.yowsup: 2.5.2 -> 2.5.7

The latest update of `yowsup` (https://github.com/tgalal/yowsup/releases/tag/v2.5.7) contains the following fixes: * Updated tokens * Fixed tgalal/yowsup#1842: Bug in protocol_groups RemoveGroupsNotificationProtocolEntity * Other minor bug fixes The `argparse-dependency.patch` required a rebase onto the latest version of `setup.py` and ensures that `argparse` won't be needed as extra dependency as our `python3` package ships `argparse` by default. A short note to Python 2 support: the actual issue related to Python 2.x support has been resolved (https://github.com/tgalal/yowsup/issues/2325#issuecomment-354533727), however this relies on `six==1.10` which isn't support by `nixpkgs` as `six` has been bumped to `1.11`. When trying to inject a patched version of our `six` package based on `six==1.10` you'll run into issues with duplicated libraries in your closure as further build dependencies (`pytest` in this case) use the latest `six` version. As Python 2.7 will die in 2020 (https://pythonclock.org/) and patching around in the dependencies of `pytest` to get `yowsup` running isn't worth the effort in my opinion I decided to keep the Python 2.x build disabled for now.

commitcf50edf58385c4ca261b53ad09c9be2d94349427 authorMaximilian Bosch <maximilian@mbosch.me> dateThu 3 May 2018, 15:35 (9 years ago) parentae7c71e
2 files changed+7−8
pkgs/development/python-modules/yowsup/argparse-dependency.patch+3−3 pkgs/development/python-modules/yowsup/default.nix+4−5
pkgs/development/python-modules/yowsup/argparse-dependency.patch+3−3
@@ -1,13 +1,13 @@
11diff --git a/setup.py b/setup.py
2−index 053ed07..60f0d9a 100755
2+index 991e89c..7a96ccf 100755
33--- a/setup.py
44+++ b/setup.py
55@@ -5,7 +5,7 @@ import yowsup
66 import platform
77 import sys
88
9−-deps = ['python-dateutil', 'argparse', 'python-axolotl>=0.1.39', 'six']
9+-deps = ['python-dateutil', 'argparse', 'python-axolotl>=0.1.39', 'six==1.10']
1010+deps = ['python-dateutil', 'python-axolotl>=0.1.39', 'six']
1111
1212 if sys.version_info < (2,7):
13− deps += ['importlib']
13+ deps += ['importlib', "protobuf==3.4.0"]
pkgs/development/python-modules/yowsup/default.nix+4−5
@@ -3,19 +3,18 @@
33}:
44
55buildPythonPackage rec {
6− name = "${pname}-${version}";
76 pname = "yowsup";
8− version = "2.5.2";
7+ version = "2.5.7";
98
10− # python2 is currently incompatible with yowsup:
11− # https://github.com/tgalal/yowsup/issues/2325#issuecomment-343516519
9+ # The Python 2.x support of this package is incompatible with `six==1.11`:
10+ # https://github.com/tgalal/yowsup/issues/2416#issuecomment-365113486
1211 disabled = !isPy3k;
1312
1413 src = fetchFromGitHub {
1514 owner = "tgalal";
1615 repo = "yowsup";
1716 rev = "v${version}";
18− sha256 = "16l8jmr32wwvl11m0a4r4id3dkfqj2n7dn6gky1077xwmj2da4fl";
17+ sha256 = "1p0hdj5x38v2cxjnhdnqcnp5g7la57mbi365m0z83wa01x2n73w6";
1918 };
2019
2120 checkInputs = [ pytest ];