2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, substituteAll, aiodns, pyasn1, pyasn1-modules, aiohttp, gnupg, nose }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "slixmpp";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "1.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0c5g4r5c6zm5fgvk6dd0dbx9gl3ws2swajc5knlacnpfykwzp5b4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-gnupg-path.patch;
|
|
|
|
inherit gnupg;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiodns pyasn1 pyasn1-modules aiohttp ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --where=tests --exclude=live -i slixtest.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Elegant Python library for XMPP";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://dev.louiz.org/projects/slixmpp";
|
|
|
|
};
|
|
|
|
}
|