e7d1be840c
Those are packages I don't use anymore for a longer time and I therefore don't think that listing me as maintainer is a good idea. If those should be removed now, I'd be fine with that. SuperSandro2000 will take care of a few packages[1]. [1] https://github.com/NixOS/nixpkgs/pull/108126#pullrequestreview-560599381
36 lines
941 B
Nix
36 lines
941 B
Nix
{ buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest
|
|
, isPy3k, consonance, appdirs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yowsup";
|
|
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
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tgalal";
|
|
repo = "yowsup";
|
|
rev = "v${version}";
|
|
sha256 = "0wb8yl685nr1i3vx89hwan5m6a482x8g48f5ksvdlph538p720pm";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
checkPhase = ''
|
|
HOME=$(mktemp -d) py.test yowsup
|
|
'';
|
|
|
|
patches = [ ./dependency-fixes.patch ];
|
|
|
|
propagatedBuildInputs = [ six python-axolotl consonance appdirs ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/tgalal/yowsup";
|
|
description = "The python WhatsApp library";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|