Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonPackages.yowsup: init at v2.5.2 (#30406)
* pythonPackages.yowsup: init at v2.5.2 * python.pkgs.yowsup: fix tests
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
pkgs/development/python-modules/yowsup/argparse-dependency.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters