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