2018-10-17 05:50:48 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, fetchurl, aiodns, pyasn1, pyasn1-modules, gnupg }:
|
|
|
|
|
2018-10-16 16:29:24 +01:00
|
|
|
buildPythonPackage rec {
|
2018-10-17 05:50:48 +01:00
|
|
|
pname = "slixmpp";
|
2018-10-16 16:29:24 +01:00
|
|
|
version = "1.4.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
2018-10-17 05:50:48 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-16 16:29:24 +01:00
|
|
|
sha256 = "155qxx4xlkkjb4hphc09nsi2mi4xi3m2akg0z7064kj3nbzkwjn2";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace slixmpp/thirdparty/gnupg.py \
|
|
|
|
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiodns pyasn1 pyasn1-modules gnupg ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Elegant Python library for XMPP";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = https://dev.louiz.org/projects/slixmpp;
|
|
|
|
};
|
|
|
|
}
|