2017-11-11 08:35:50 +00:00
|
|
|
{ buildPythonPackage, stdenv, 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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/tgalal/yowsup";
|
|
|
|
description = "The python WhatsApp library";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|