2021-02-04 21:27:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, aiodns
|
|
|
|
, aiohttp
|
|
|
|
, fetchPypi
|
|
|
|
, gnupg
|
|
|
|
, isPy3k
|
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
|
|
|
, pytestCheckHook
|
|
|
|
, substituteAll
|
|
|
|
}:
|
2018-10-17 04:50:48 +00:00
|
|
|
|
2018-10-16 15:29:24 +00:00
|
|
|
buildPythonPackage rec {
|
2018-10-17 04:50:48 +00:00
|
|
|
pname = "slixmpp";
|
2021-05-06 19:16:13 +00:00
|
|
|
version = "1.7.1";
|
2018-10-16 15:29:24 +00:00
|
|
|
|
2019-01-13 14:24:24 +00:00
|
|
|
disabled = !isPy3k;
|
2018-10-16 15:29:24 +00:00
|
|
|
|
2018-10-17 04:50:48 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-06 19:16:13 +00:00
|
|
|
sha256 = "sha256-mvg23FdHJZeIZRcm8GLWmm9DDTBt29jmsUHB/smVSec=";
|
2018-10-16 15:29:24 +00:00
|
|
|
};
|
|
|
|
|
2019-01-13 14:24:24 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-gnupg-path.patch;
|
|
|
|
inherit gnupg;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-04 21:27:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-10-16 15:29:24 +00:00
|
|
|
|
2021-02-04 21:27:52 +00:00
|
|
|
# Exclude live tests
|
2021-02-14 22:54:55 +00:00
|
|
|
disabledTestPaths = [ "tests/live_test.py" ];
|
2019-01-13 14:24:24 +00:00
|
|
|
|
2021-02-04 21:27:52 +00:00
|
|
|
pythonImportsCheck = [ "slixmpp" ];
|
2018-10-16 15:29:24 +00:00
|
|
|
|
2021-02-04 21:27:52 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 15:29:24 +00:00
|
|
|
description = "Elegant Python library for XMPP";
|
2021-02-04 21:27:52 +00:00
|
|
|
homepage = "https://slixmpp.readthedocs.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-10-16 15:29:24 +00:00
|
|
|
};
|
|
|
|
}
|