1{ lib 2, buildPythonPackage 3, aiodns 4, aiohttp 5, fetchPypi 6, gnupg 7, isPy3k 8, pyasn1 9, pyasn1-modules 10, pytestCheckHook 11, substituteAll 12}: 13 14buildPythonPackage rec { 15 pname = "slixmpp"; 16 version = "1.7.1"; 17 18 disabled = !isPy3k; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "sha256-mvg23FdHJZeIZRcm8GLWmm9DDTBt29jmsUHB/smVSec="; 23 }; 24 25 patches = [ 26 (substituteAll { 27 src = ./hardcode-gnupg-path.patch; 28 inherit gnupg; 29 }) 30 ]; 31 32 propagatedBuildInputs = [ 33 aiodns 34 aiohttp 35 pyasn1 36 pyasn1-modules 37 ]; 38 39 checkInputs = [ pytestCheckHook ]; 40 41 # Exclude live tests 42 disabledTestPaths = [ "tests/live_test.py" ]; 43 44 pythonImportsCheck = [ "slixmpp" ]; 45 46 meta = with lib; { 47 description = "Elegant Python library for XMPP"; 48 homepage = "https://slixmpp.readthedocs.io/"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}