2021-01-25 08:26:54 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub, six, python-axolotl, pytest
|
2019-12-05 20:00:34 +00:00
|
|
|
, isPy3k, consonance, appdirs
|
2017-11-11 08:35:50 +00:00
|
|
|
}:
|
2017-10-14 10:54:59 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yowsup";
|
2019-12-05 20:00:34 +00:00
|
|
|
version = "3.2.3";
|
2017-10-14 10:54:59 +01:00
|
|
|
|
2018-05-03 14:35:51 +01: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 08:35:50 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2017-10-14 10:54:59 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tgalal";
|
|
|
|
repo = "yowsup";
|
|
|
|
rev = "v${version}";
|
2019-12-05 20:00:34 +00:00
|
|
|
sha256 = "0wb8yl685nr1i3vx89hwan5m6a482x8g48f5ksvdlph538p720pm";
|
2017-10-14 10:54:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$(mktemp -d) py.test yowsup
|
|
|
|
'';
|
|
|
|
|
2019-12-05 20:00:34 +00:00
|
|
|
patches = [ ./dependency-fixes.patch ];
|
2017-10-14 10:54:59 +01:00
|
|
|
|
2019-12-05 20:00:34 +00:00
|
|
|
propagatedBuildInputs = [ six python-axolotl consonance appdirs ];
|
2017-10-14 10:54:59 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-14 10:54:59 +01:00
|
|
|
homepage = "https://github.com/tgalal/yowsup";
|
|
|
|
description = "The python WhatsApp library";
|
|
|
|
license = licenses.gpl3;
|
2021-01-01 13:39:41 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2017-10-14 10:54:59 +01:00
|
|
|
};
|
|
|
|
}
|