diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2017-10-14 11:54:59 +0200 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-10-14 10:54:59 +0100 |
commit | eef496f01c2b7d11e21d3f07e049f1f1ca752ecd (patch) | |
tree | 50504d3d54c45aea1c9762e596a82f02878a245c /pkgs/development/python-modules/yowsup | |
parent | 30b3b5d85f4493aa0364ca2537b6d2070450a73e (diff) | |
download | nixlib-eef496f01c2b7d11e21d3f07e049f1f1ca752ecd.tar nixlib-eef496f01c2b7d11e21d3f07e049f1f1ca752ecd.tar.gz nixlib-eef496f01c2b7d11e21d3f07e049f1f1ca752ecd.tar.bz2 nixlib-eef496f01c2b7d11e21d3f07e049f1f1ca752ecd.tar.lz nixlib-eef496f01c2b7d11e21d3f07e049f1f1ca752ecd.tar.xz nixlib-eef496f01c2b7d11e21d3f07e049f1f1ca752ecd.tar.zst nixlib-eef496f01c2b7d11e21d3f07e049f1f1ca752ecd.zip |
pythonPackages.yowsup: init at v2.5.2 (#30406)
* pythonPackages.yowsup: init at v2.5.2 * python.pkgs.yowsup: fix tests
Diffstat (limited to 'pkgs/development/python-modules/yowsup')
-rw-r--r-- | pkgs/development/python-modules/yowsup/argparse-dependency.patch | 13 | ||||
-rw-r--r-- | pkgs/development/python-modules/yowsup/default.nix | 30 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/yowsup/argparse-dependency.patch b/pkgs/development/python-modules/yowsup/argparse-dependency.patch new file mode 100644 index 000000000000..364f0054fe78 --- /dev/null +++ b/pkgs/development/python-modules/yowsup/argparse-dependency.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 053ed07..60f0d9a 100755 +--- a/setup.py ++++ b/setup.py +@@ -5,7 +5,7 @@ import yowsup + import platform + import sys + +-deps = ['python-dateutil', 'argparse', 'python-axolotl>=0.1.39', 'six'] ++deps = ['python-dateutil', 'python-axolotl>=0.1.39', 'six'] + + if sys.version_info < (2,7): + deps += ['importlib'] diff --git a/pkgs/development/python-modules/yowsup/default.nix b/pkgs/development/python-modules/yowsup/default.nix new file mode 100644 index 000000000000..fce974ccd3ac --- /dev/null +++ b/pkgs/development/python-modules/yowsup/default.nix @@ -0,0 +1,30 @@ +{ buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "yowsup"; + version = "2.5.2"; + + src = fetchFromGitHub { + owner = "tgalal"; + repo = "yowsup"; + rev = "v${version}"; + sha256 = "16l8jmr32wwvl11m0a4r4id3dkfqj2n7dn6gky1077xwmj2da4fl"; + }; + + checkInputs = [ pytest ]; + checkPhase = '' + HOME=$(mktemp -d) py.test yowsup + ''; + + patches = [ ./argparse-dependency.patch ]; + + propagatedBuildInputs = [ six python-axolotl ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/tgalal/yowsup"; + description = "The python WhatsApp library"; + license = licenses.gpl3; + maintainers = with maintainers; [ ma27 ]; + }; +} |