2021-02-05 17:12:51 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub, six, python-axolotl, pytest
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPy3k, consonance, appdirs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yowsup";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "3.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# The Python 2.x support of this package is incompatible with `six==1.11`:
|
|
|
|
# https://github.com/tgalal/yowsup/issues/2416#issuecomment-365113486
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tgalal";
|
|
|
|
repo = "yowsup";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "1pz0r1gif15lhzdsam8gg3jm6zsskiv2yiwlhaif5rl7lv3p0v7q";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$(mktemp -d) py.test yowsup
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./dependency-fixes.patch ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six python-axolotl consonance appdirs ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tgalal/yowsup";
|
|
|
|
description = "The python WhatsApp library";
|
|
|
|
license = licenses.gpl3;
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|