pythonPackages.yowsup: disable python2 build

I'm not exactly sure why, but it seems as the python2 build
of yowsup is breaking.
see https://github.com/tgalal/yowsup/issues/2325

It seems to be recommended to use python3 for building and disable
the usage of python2 which fixed the build.
This commit is contained in:
Maximilian Bosch 2017-11-11 09:35:50 +01:00
parent 4d4e70d071
commit 14c13ed390
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -1,10 +1,16 @@
{ buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest }:
{ buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest
, isPy3k
}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "yowsup";
version = "2.5.2";
# python2 is currently incompatible with yowsup:
# https://github.com/tgalal/yowsup/issues/2325#issuecomment-343516519
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "tgalal";
repo = "yowsup";