Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.yowsup: init at v2.5.2 (#30406)

* pythonPackages.yowsup: init at v2.5.2

* python.pkgs.yowsup: fix tests

authored by

Maximilian Bosch and committed by
Jörg Thalheim
eef496f0 30b3b5d8

+45
+13
pkgs/development/python-modules/yowsup/argparse-dependency.patch
··· 1 + diff --git a/setup.py b/setup.py 2 + index 053ed07..60f0d9a 100755 3 + --- a/setup.py 4 + +++ b/setup.py 5 + @@ -5,7 +5,7 @@ import yowsup 6 + import platform 7 + import sys 8 + 9 + -deps = ['python-dateutil', 'argparse', 'python-axolotl>=0.1.39', 'six'] 10 + +deps = ['python-dateutil', 'python-axolotl>=0.1.39', 'six'] 11 + 12 + if sys.version_info < (2,7): 13 + deps += ['importlib']
+30
pkgs/development/python-modules/yowsup/default.nix
··· 1 + { buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest }: 2 + 3 + buildPythonPackage rec { 4 + name = "${pname}-${version}"; 5 + pname = "yowsup"; 6 + version = "2.5.2"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "tgalal"; 10 + repo = "yowsup"; 11 + rev = "v${version}"; 12 + sha256 = "16l8jmr32wwvl11m0a4r4id3dkfqj2n7dn6gky1077xwmj2da4fl"; 13 + }; 14 + 15 + checkInputs = [ pytest ]; 16 + checkPhase = '' 17 + HOME=$(mktemp -d) py.test yowsup 18 + ''; 19 + 20 + patches = [ ./argparse-dependency.patch ]; 21 + 22 + propagatedBuildInputs = [ six python-axolotl ]; 23 + 24 + meta = with stdenv.lib; { 25 + homepage = "https://github.com/tgalal/yowsup"; 26 + description = "The python WhatsApp library"; 27 + license = licenses.gpl3; 28 + maintainers = with maintainers; [ ma27 ]; 29 + }; 30 + }
+2
pkgs/top-level/python-packages.nix
··· 26537 26537 }; 26538 26538 }; 26539 26539 26540 + yowsup = callPackage ../development/python-modules/yowsup { }; 26541 + 26540 26542 wptserve = callPackage ../development/python-modules/wptserve { }; 26541 26543 26542 26544 yenc = callPackage ../development/python-modules/yenc { };