From 14c13ed3900c413ae217aacbaa31572ee8d9548c Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 11 Nov 2017 09:35:50 +0100 Subject: [PATCH] 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. --- pkgs/development/python-modules/yowsup/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/yowsup/default.nix b/pkgs/development/python-modules/yowsup/default.nix index fce974ccd3ac..f7ee986aebb3 100644 --- a/pkgs/development/python-modules/yowsup/default.nix +++ b/pkgs/development/python-modules/yowsup/default.nix @@ -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";