python3Packages.yowsup: fix build
This commit is contained in:
parent
d941033be3
commit
5531b1ec05
2 changed files with 25 additions and 21 deletions
|
@ -1,5 +1,13 @@
|
|||
{ buildPythonPackage, lib, fetchFromGitHub, six, python-axolotl, pytest
|
||||
, isPy3k, consonance, appdirs
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, fetchFromGitHub
|
||||
, appdirs
|
||||
, consonance
|
||||
, protobuf
|
||||
, python-axolotl
|
||||
, six
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -17,19 +25,28 @@ buildPythonPackage rec {
|
|||
sha256 = "1pz0r1gif15lhzdsam8gg3jm6zsskiv2yiwlhaif5rl7lv3p0v7q";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
HOME=$(mktemp -d) py.test yowsup
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "argparse" "" \
|
||||
--replace "==" ">=" \
|
||||
'';
|
||||
|
||||
patches = [ ./dependency-fixes.patch ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ six python-axolotl consonance appdirs ];
|
||||
propagatedBuildInputs = [
|
||||
appdirs
|
||||
consonance
|
||||
protobuf
|
||||
python-axolotl
|
||||
six
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/tgalal/yowsup";
|
||||
description = "The python WhatsApp library";
|
||||
license = licenses.gpl3;
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/setup.py b/setup.py
|
||||
index e3871a7..930bd6a 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -5,7 +5,7 @@ import yowsup
|
||||
import platform
|
||||
import sys
|
||||
|
||||
-deps = ['consonance==0.1.2', 'argparse', 'python-axolotl==0.2.2', 'six==1.10', 'appdirs', 'protobuf>=3.6.0']
|
||||
+deps = ['consonance>=0.1', 'python-axolotl>=0.2', 'six>=1.10', 'appdirs', 'protobuf>=3.6.0']
|
||||
|
||||
if sys.version_info < (2, 7):
|
||||
deps.append('importlib')
|
Loading…
Reference in a new issue