at 23.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchFromGitHub 5, appdirs 6, consonance 7, protobuf 8, python-axolotl 9, six 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "yowsup"; 15 version = "3.3.0"; 16 17 # The Python 2.x support of this package is incompatible with `six==1.11`: 18 # https://github.com/tgalal/yowsup/issues/2416#issuecomment-365113486 19 disabled = !isPy3k; 20 21 src = fetchFromGitHub { 22 owner = "tgalal"; 23 repo = "yowsup"; 24 rev = "v${version}"; 25 sha256 = "1pz0r1gif15lhzdsam8gg3jm6zsskiv2yiwlhaif5rl7lv3p0v7q"; 26 }; 27 28 postPatch = '' 29 substituteInPlace setup.py \ 30 --replace "argparse" "" \ 31 --replace "==" ">=" \ 32 ''; 33 34 checkInputs = [ 35 pytestCheckHook 36 ]; 37 38 propagatedBuildInputs = [ 39 appdirs 40 consonance 41 protobuf 42 python-axolotl 43 six 44 ]; 45 46 meta = with lib; { 47 homepage = "https://github.com/tgalal/yowsup"; 48 description = "The python WhatsApp library"; 49 license = licenses.gpl3Plus; 50 maintainers = with maintainers; [ SuperSandro2000 ]; 51 }; 52}