diff --git a/pkgs/development/python-modules/yowsup/argparse-dependency.patch b/pkgs/development/python-modules/yowsup/argparse-dependency.patch deleted file mode 100644 index e2b9f0c9a74c..000000000000 --- a/pkgs/development/python-modules/yowsup/argparse-dependency.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/setup.py b/setup.py -index 991e89c..7a96ccf 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==1.10'] -+deps = ['python-dateutil', 'python-axolotl>=0.1.39', 'six'] - - if sys.version_info < (2,7): - deps += ['importlib', "protobuf==3.4.0"] diff --git a/pkgs/development/python-modules/yowsup/default.nix b/pkgs/development/python-modules/yowsup/default.nix index 5fa4af18c089..0436fe8a0f00 100644 --- a/pkgs/development/python-modules/yowsup/default.nix +++ b/pkgs/development/python-modules/yowsup/default.nix @@ -1,10 +1,10 @@ { buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest -, isPy3k +, isPy3k, consonance, appdirs }: buildPythonPackage rec { pname = "yowsup"; - version = "2.5.7"; + version = "3.2.3"; # The Python 2.x support of this package is incompatible with `six==1.11`: # https://github.com/tgalal/yowsup/issues/2416#issuecomment-365113486 @@ -14,7 +14,7 @@ buildPythonPackage rec { owner = "tgalal"; repo = "yowsup"; rev = "v${version}"; - sha256 = "1p0hdj5x38v2cxjnhdnqcnp5g7la57mbi365m0z83wa01x2n73w6"; + sha256 = "0wb8yl685nr1i3vx89hwan5m6a482x8g48f5ksvdlph538p720pm"; }; checkInputs = [ pytest ]; @@ -22,9 +22,9 @@ buildPythonPackage rec { HOME=$(mktemp -d) py.test yowsup ''; - patches = [ ./argparse-dependency.patch ]; + patches = [ ./dependency-fixes.patch ]; - propagatedBuildInputs = [ six python-axolotl ]; + propagatedBuildInputs = [ six python-axolotl consonance appdirs ]; meta = with stdenv.lib; { homepage = "https://github.com/tgalal/yowsup"; diff --git a/pkgs/development/python-modules/yowsup/dependency-fixes.patch b/pkgs/development/python-modules/yowsup/dependency-fixes.patch new file mode 100644 index 000000000000..eab56332d492 --- /dev/null +++ b/pkgs/development/python-modules/yowsup/dependency-fixes.patch @@ -0,0 +1,13 @@ +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')