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