at 24.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.4"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-QG8fS6t+dXPdVZpEECfT3jPRe7o1S88g3caq+6JyKGs="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiodns 28 aiohttp 29 pyasn1 30 pyasn1-modules 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 patches = [ 38 (substituteAll { 39 src = ./hardcode-gnupg-path.patch; 40 inherit gnupg; 41 }) 42 ]; 43 44 disabledTestPaths = [ 45 # Exclude live tests 46 "tests/live_test.py" 47 "tests/test_xep_0454.py" 48 ]; 49 50 pythonImportsCheck = [ 51 "slixmpp" 52 ]; 53 54 meta = with lib; { 55 description = "Python library for XMPP"; 56 homepage = "https://slixmpp.readthedocs.io/"; 57 changelog = "https://lab.louiz.org/poezio/slixmpp/-/tags/slix-${version}"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ fab ]; 60 }; 61}