2017-11-11 09:35:50 +01:00
|
|
|
{ buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest
|
2019-12-05 21:00:34 +01:00
|
|
|
, isPy3k, consonance, appdirs
|
2017-11-11 09:35:50 +01:00
|
|
|
}:
|
2017-10-14 11:54:59 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yowsup";
|
2019-12-05 21:00:34 +01:00
|
|
|
version = "3.2.3";
|
2017-10-14 11:54:59 +02:00
|
|
|
|
2018-05-03 15:35:51 +02:00
|
|
|
# The Python 2.x support of this package is incompatible with `six==1.11`:
|
|
|
|
# https://github.com/tgalal/yowsup/issues/2416#issuecomment-365113486
|
2017-11-11 09:35:50 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2017-10-14 11:54:59 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tgalal";
|
|
|
|
repo = "yowsup";
|
|
|
|
rev = "v${version}";
|
2019-12-05 21:00:34 +01:00
|
|
|
sha256 = "0wb8yl685nr1i3vx89hwan5m6a482x8g48f5ksvdlph538p720pm";
|
2017-10-14 11:54:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$(mktemp -d) py.test yowsup
|
|
|
|
'';
|
|
|
|
|
2019-12-05 21:00:34 +01:00
|
|
|
patches = [ ./dependency-fixes.patch ];
|
2017-10-14 11:54:59 +02:00
|
|
|
|
2019-12-05 21:00:34 +01:00
|
|
|
propagatedBuildInputs = [ six python-axolotl consonance appdirs ];
|
2017-10-14 11:54:59 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/tgalal/yowsup";
|
|
|
|
description = "The python WhatsApp library";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|