1{ buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest 2, isPy3k 3}: 4 5buildPythonPackage rec { 6 pname = "yowsup"; 7 version = "2.5.7"; 8 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 11 disabled = !isPy3k; 12 13 src = fetchFromGitHub { 14 owner = "tgalal"; 15 repo = "yowsup"; 16 rev = "v${version}"; 17 sha256 = "1p0hdj5x38v2cxjnhdnqcnp5g7la57mbi365m0z83wa01x2n73w6"; 18 }; 19 20 checkInputs = [ pytest ]; 21 checkPhase = '' 22 HOME=$(mktemp -d) py.test yowsup 23 ''; 24 25 patches = [ ./argparse-dependency.patch ]; 26 27 propagatedBuildInputs = [ six python-axolotl ]; 28 29 meta = with stdenv.lib; { 30 homepage = "https://github.com/tgalal/yowsup"; 31 description = "The python WhatsApp library"; 32 license = licenses.gpl3; 33 maintainers = with maintainers; [ ma27 ]; 34 }; 35}