at 23.05-pre 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, aiodns 4, aiohttp 5, fetchPypi 6, gnupg 7, pyasn1 8, pyasn1-modules 9, pytestCheckHook 10, substituteAll 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "slixmpp"; 16 version = "1.8.3"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-rJtZqq7tZ/VFk4fMpDZYyTQRa1Pokmn2aw6LA+FBGXw="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiodns 28 aiohttp 29 pyasn1 30 pyasn1-modules 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 patches = [ 38 (substituteAll { 39 src = ./hardcode-gnupg-path.patch; 40 inherit gnupg; 41 }) 42 # Upstream MR: https://lab.louiz.org/poezio/slixmpp/-/merge_requests/198 43 ./0001-xep_0030-allow-extra-args-in-get_info_from_domain.patch 44 ]; 45 46 disabledTestPaths = [ 47 # Exclude live tests 48 "tests/live_test.py" 49 "tests/test_xep_0454.py" 50 ]; 51 52 pythonImportsCheck = [ 53 "slixmpp" 54 ]; 55 56 meta = with lib; { 57 description = "Python library for XMPP"; 58 homepage = "https://slixmpp.readthedocs.io/"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ fab ]; 61 }; 62}